Posted by Rik on 10/31/75 11:48
Baron Samedi wrote:
> $text = "(2==3)";
>
> eval('\$condition = ($text)? true : false;');
>
>
> Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
> C:\graham\blog\extensions\_snippet_dev\~scp.php(127) : eval()'d code
> on line 1
eval("\$condition = ($text)? true : false;"); or
eval('$condition = ('.$text.')? true : false;');
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|