Possible Duplicate:
how to evaluate formula passed as string in php?
I have a string like "10*0.1+800" I would like to get the actual answer of the this string in numeric instead of the string value.
I have tried floatval
php function but had no luck. Any idea?