Just found out that PHP has totally different variable scope than Java. In PHP you have specify global keyword inside the function not outside. I am so used to Java type variable scope.
For more info read here
Related posts:
Art, Science & Philosophy
Just found out that PHP has totally different variable scope than Java. In PHP you have specify global keyword inside the function not outside. I am so used to Java type variable scope.
For more info read here
Related posts:
Yeah that does take some getting used to…On the other hand, it is nice to be able to explicitly declare a reference to the global variable (inside the function, that is) so that you know you intend upon working with it.
I’ve found it particularly useful in my latest project – a ticketing system for arenas/venues of any shape/size…=)