Posted by Alan Little on 11/22/60 11:48
Carved in mystic runes upon the very living rock, the last words of Baron
Samedi of comp.lang.php make plain:
> $text = "(2==3)";
No parentheses.
> eval('\$condition = ($text)? true : false;');
Double qoutes, man. Double quotes.
> 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
>
> Sorry, I still don't get it to work.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Navigation:
[Reply to this message]
|