Is it possible to calculate a math function f(x) that in a string. Something like this:
$function = '2x+3';
$x = 4;
math_function($function, $x); //Shoud produce 11
I can't find a library for tasks like this on PHP.net or with Google, but I don't think I am the first one that wants this?