note 10034 added to Variable variables

From: Date: Fri, 08 Dec 2000 16:01:25 +0000
Subject: note 10034 added to Variable variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-8528@lists.php.net to get a copy of this message
By the way... Variable variables can be used as pointers to objects' properties: <? class someclass { var $a = "variable a"; var $b = "another variable: b"; } $c = new someclass; $d = "b"; echo $c->{$d}; ?> outputs: another variable: b http://www.php.net/manual/language.variables.variable.php

« previous php.notes (#8528) next »