corillo181 Posted June 17, 2007 Share Posted June 17, 2007 i was just testing this out, but isn't a global variable supposed to echo out it's value no matter where in the page you put it in? <? $hello='hello'; echo $ww; echo $hello; global $ww; $ww="hello"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/55908-global-variable/ Share on other sites More sharing options...
trq Posted June 17, 2007 Share Posted June 17, 2007 You cannot echo a variable before it is defined. End of story. Quote Link to comment https://forums.phpfreaks.com/topic/55908-global-variable/#findComment-276157 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.