This question might sound very weird and ridiculing but I was wondering if its possible.
I want to manipulate the operators that are present in String in PHP. Eg:
$a = "3 + 2";
Is it possible to get the result as 5? Similary $a can also have another values like
$a = "3 - 2 "; or $a = "3 * 2";
In every cases, I want the appropriate result. But one operator will always be there in the String at the center. The requirement is, I want to know if the operator present in the String can be manipulated.
Thanks in advance