note 8915 deleted from language.variables.variable by philip
| From: | philip@php.net | Date: | Wed, 16 Mar 2005 01:22:13 +0000 |
| Subject: | note 8915 deleted from language.variables.variable by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86521@lists.php.net to get a copy of this message | ||
Note Submitter: maxim at maxim dot cx
----
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