Hi,
is there a way to evaluate in PHP a string like "2+3*5" ? I'm
expecting 17 as a result. A way to achieve that would be to invoke the
bc calculator but I was wondering if you can do such a thing directly
in PHP?
Cheers,
Patrick
numerical evaluation of a string
|