Possible Duplicate:
How to make a calculator in PHP?
I got the string like 5*100/4 , and I need to make a math statement from this...Simply put, when this is is the input, output should be 125. Does anyone know any simple way to achieve this? I tried
$input = "5*100/4";
eval('$output = '.$input.';');
but that doesn´t work for some reason... Any advices?