I need to convert the formula like string to its calculated value, in PHP.
For eg:
$str = "(20000+(2000*(40/100)))*(10/100)";
$calculated_value = ????; // Calculated value of the above string "$str".
I need to calculate value of the string "$str" and store it in separate string. Please help me out.
Thanks in advance.