note 8915 added to Variable variables
| From: | maxim at maxim dot cx | Date: | Thu, 05 Oct 2000 22:59:09 +0000 |
| Subject: | note 8915 added to Variable variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6130@lists.php.net to get a copy of this message | ||
Here's the deal:
Variable Variable do the things you don't wont to see:
example:
...any kind of loop..
echo $$b; //will work
UPDATE table SET field='$$b' WHERE id='$b' // will set into your DB exactly as
you see it here: $$b
...any kind of loop..
$new_b =$$b;
echo $new_b; // will work
UPDATE table SET field='$new_b' WHERE id='$b' // will also work perfectly..
I think I know how to explain it: didn't terst enough...
Cheers,
Maxim Maletsky
http://www.php.net/manual/language.variables.variable.php