Jump to content

String to Sum


iwarlord

Recommended Posts

http://www.google.com/search?hl=en&q=php+math+parsing&btnG=Google+Search&aq=f&oq=

 

 

If you didn't want to have to use eval, you could always write a parser with regular expressions.  A small parser that can just handle the basic operations wouldn't be hard at all.  But, as long as that is the case, eval would work just as well, be faster, and of course be easier.

Link to comment
https://forums.phpfreaks.com/topic/136021-string-to-sum/#findComment-709931
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.