note 10034 modified in language.variables.variable by irc-html

From: Date: Sat, 19 Jan 2002 18:55:50 +0000
Subject: note 10034 modified in language.variables.variable by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25206@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 --was-- By the way... Variable variables can be used as pointers to objects' properties: &lt;? 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/en/language.variables.variable.php

« previous php.notes (#25206) next »