Behavior of $GLOBALS array changed?

From: Date: Fri, 21 Apr 2000 17:59:30 +0000
Subject: Behavior of $GLOBALS array changed?
Groups: php.version4 
Request: Send a blank email to php-version4+get-13904@lists.php.net to get a copy of this message
Not sure whats happening here but it sure seems like the behavior of arrays has changed. I tried finding something about it on zend.com but to no avail. As I'm sure you know, in PHP3 this would work, however in PHP 4 it does not. I'm sure its for a reason, I just need to know the proper way: <? $newrequests = "newrequests"; $str = "newrequests"; echo $GLOBALS[$str]; #<-- Prints it function Test() { echo $GLOBALS[$str]; #<-- Does not } Test(); ?> Thanks, Bob aka Salty```

« previous php.version4 (#13904) next »