[PHP] Playing with globals

2004-05-28 Thread Ciprian Trofin
Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ ? function test() { $GLOBALS['test'] = 1; $test = 2; } test(); echo $test; ?

Re: [PHP] Playing with globals

2004-05-28 Thread Steve Edberg
At 11:52 AM +0300 5/28/04, Ciprian Trofin wrote: Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ ? function test() { $GLOBALS['test'] = 1; $test = 2; } test(); echo $test;