variable variables in global - bug?

From: Date: Wed, 02 Apr 2003 03:10:48 +0000
Subject: variable variables in global - bug?
Groups: php.internals 
Request: Send a blank email to internals+get-580@lists.php.net to get a copy of this message
Hi, It was brought to my attention that this code is legal in PHP 4: function foo($param = 'test') {
    global $$param;
    echo $$param;
} $test = 'bar'; foo(); // prints bar Is this a feature or a bug? (Should we support this syntax in phpDocumentor, or might it change in php 5?) Greg -- phpDocumentor http://www.phpdoc.org

« previous php.internals (#580) next »