FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Simple expression parser for PHP.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Simple expression parser for PHP. [message #179824 is a reply to message #179737] Mon, 10 December 2012 17:40 Go to previous message
Daniel Pitts is currently offline  Daniel Pitts
Messages: 68
Registered: May 2012
Karma:
Member
On 11/30/12 3:56 PM, Daniel Pitts wrote:
> Hello,
> I have a requirement that I need to take an expression and evaluate it.
> I'd very much like to avoid using PHP's eval(), for obvious reasons.
> I'm kind of looking for something that is similar to OGNL (a Java
> library for expressions).
>
> Speed is a plus, ease of integration is a nice-to-have. Low bug density
> and active community is also a plus.

To everyone who helped (or tried to help). I eventually went with using
create_function()

The expressions themselves are trusted, and this gives the most
flexibility. The syntax of PHP isn't the best for this context, but is
good enough.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to run program from php..?
Next Topic: Old version trouble with $_SERVER variables?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 13:49:00 GMT 2024

Total time taken to generate the page: 0.05395 seconds