note 47359 deleted from function.eval by alindeman
| From: | alindeman@php.net | Date: | Sat, 11 Dec 2004 02:31:13 +0000 |
| Subject: | note 47359 deleted from function.eval by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81672@lists.php.net to get a copy of this message | ||
Note Submitter:
----
eval() is not to blame.
It needs to be properly escaped just like in any other string:
eval("\$temp = \"{$my_array[1][0]}\";");
echo($temp);
returns "Link 2" as desired.