$val = 3 + 2;
echo $val; // Will echo 5
Is there *any* way to do this?
$val = "3+2";
// evaluate this string as two scalars with order of operations
echo evaluate($val); // Will echo 5
I've been looking but I can't find anything that will do it Even javascript has this functionality.