I've got a little bit of code within my function.php file, and that i can't access a worldwide variable. I copy this inside a separate php file and that i get 'New value' although not within the theme's function.php file:

$myVar = 'test' function hello() hello() echo $myVar

also it prints out 'test'

Does Wordpress has issues with globals? So far as I understand, Wordpress after sales extensively uses global vars.

Inside a simple PHP file this works best for me -- i.e. I recieve "New value". Something should be missing from that which you presented as the execution context.

For Wordpress getting an issue with globals, I believe the greater general statement is the fact that PHP programs have trouble with globals for the reason that they will useOrrely on waaaay diet program them. Regrettably, it appears to become the character from the animal.