Re: PATCH: anonymous functions in PHP

From: Date: Tue, 20 Mar 2007 18:35:19 +0000
Subject: Re: PATCH: anonymous functions in PHP
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.internals 
Request: Send a blank email to internals+get-28489@lists.php.net to get a copy of this message
> What if I doo $a = "_SCOPES", $$a[$foo]? FWIW, this doesn't work with the other superglobals (in function context): sean@sarcasm:~$ php -r '$_GET["foo"] = "bar"; function baz() { $get = "_GET"; return ${$get}["foo"]; } $get = "_GET"; echo ${$get}["foo"], baz(), "\n";' bar Notice: Undefined variable: _GET in Command line code on line 1 (this is documented) S

« previous php.internals (#28489) next »