note 61981 deleted from function.eval by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 19:57:42 +0000 |
| Subject: | note 61981 deleted from function.eval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155301@lists.php.net to get a copy of this message | ||
Note Submitter: nick at hmsonline dot co dot uk
----
Just a quick note on the functions below that use 'eval_mixed_helper' using add/remove
slash do not work if the content includes PHP like code. Using base64 encode/decode solves this.
E.g.
function eval_mixed_helper($arr)
{
return ('echo base64_decode("'.base64_encode($arr[1]).'");');
}