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 #179763 is a reply to message #179761] Mon, 03 December 2012 22:09 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/3/12 11:59 AM, Thomas 'PointedEars' Lahn wrote:
>> Daniel Pitts wrote:
>>> I've given the specific requirements. ;-)
>>
>> ISTM you want a person writing or finding that software for you without
>> any real effort on your part. If so, you are wrong here; there are smart
>> but starving PHP developers out there who you should *pay* for that
>> instead. The smiley does not change anything.
>
> I am, of course, trying to do this with the least amount of effort on my
> part possible. A lazy engineer is an efficient engineer ;-). This is
> part of a rather large project for the rather large company I work for,
> so we are already paying PHP developers. I'm not asking for anyone to
> create something for free, only trying to find out what is already out
> there. An hour of googling didn't really turn up much, so I thought I'd
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> turn to the community.

ACK, that is different, of course. You should say so, and tell the keywords
you have searched with, from the start next time.

>> For example, accessing properties instead of calling methods is
>> facilitated with the __get() and __set() magic methods. [2] PHP 5.4 even
>> allows accessing the items of array return values directly, which allows
>> for “$root->foo()["bar"]” or “$root->foo()[0]”. [3] (For PHP 5.3 there
>> can be a fallback, line “$root->foo()->items(0)”).
>
> Sure it can access a single value, but can you do math in that as well?

Like what?

> String concatenation?

String concatenation is a built-in. But if you must, you can do it step by
step.

> For example, I may have an expression such as: $myObject['someValue'] * 3

I fail to see the use-case.

> In any case, thanks for all the links, I'll look through the ones I
> don't know anything about for inspiration.

You're welcome.

Please trim your quotes and add an empty line before each of your blocks of
new text next time.


PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
[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: Wed Nov 27 06:08:02 GMT 2024

Total time taken to generate the page: 0.05023 seconds