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 #179744 is a reply to message #179743] Sun, 02 December 2012 11:45 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Daniel Pitts wrote:

> On 12/1/12 9:58 AM, Thomas 'PointedEars' Lahn wrote:
>> Daniel Pitts wrote:
>>> 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.
>>
>> What kind of expression are you talking about?
>
> Things along the lines of "request['some_attribute']" or "3 * someValue"
> etc... Where I can specify the objects available to act upon ('request'
> in the first example, 'someValue' in the second).
>
> Some method of traversing object graphs would be useful as well. Like I
> said, something similar to OGNL, but for PHP instead.

What do you need this for?


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
[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 19:33:33 GMT 2024

Total time taken to generate the page: 0.04671 seconds