Posts by Hanssen • 11 points
1 post
-
0
votes1
answer259
viewsA: syntax error, Unexpected 'global' (T_GLOBAL), expecting Function (T_FUNCTION) or const (T_CONST)
You managed to solve? For me it only worked when I first declared the variable as global and then assigned the value. In this way I was able to access the global variable within the scope of the…