Hi, is it ok to use GLOBALS? example $var = 'something'; function echoSomething() { echo $GLOBALS['var']; } PHP:
I don't see a problem with using globals if the code is relatively simple and you can have things under control. But with big and more complex programs it's not usually recommended in most programming languages. See http://en.wikipedia.org/wiki/Global_variable