I have a bunch of scripts that I have to port to php 5. They have global $name, $something...;
defined in functions. These functions are not in classes.
How can I keep those variables in the functions?
An example function
function myTest($str)
{
global $name, $something;
if($name['male'] =='Joe') return 5;
}
I appreciate any help. Thanks.