You are here: Re: I need a mini "logic interpreter" « PHP Programming Language « IT news, forums, messages
Re: I need a mini "logic interpreter"

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация