note 17803 added to language.variables
| From: | alex at djgateway dot com | Date: | Wed, 26 Dec 2001 08:08:05 +0000 |
| Subject: | note 17803 added to language.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23836@lists.php.net to get a copy of this message | ||
to call a string var, asign it $$foo="bar" then call it normaly by $foo. Calling $$foo
will output "$".$foo (adding $ character to your var)
asigning $foo="bar" then calling $$foo will output a var, not a sting ($foo)
--
http://www.php.net/manual/en/language.variables.php
http://master.php.net/manage/user-notes.php?action=edit+17803
http://master.php.net/manage/user-notes.php?action=delete+17803
http://master.php.net/manage/user-notes.php?action=reject+17803