I have a global variable like
<?PHP
function PrintVariable($str){
global ${"check" . $str} = "some value";
echo $checkmap;
}
PrintVariable('map');
but I am getting this error:
Parse error: syntax error, unexpected '=', expecting ',' or ';' in C:\wamp\www\PHP\index.php on line 3
after removing the global
from the code everything work fine but I have to create global
at this function.