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"; ?> 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. Link to comment https://forums.phpfreaks.com/topic/55908-global-variable/#findComment-276157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.