Let's say i have following string variable
$a="432";
And i want to otput the eval of the expression, means 86. The problem is that making echo $a will output 432, making (int)$a or (float)$a will output 43 (will parse only the first operand, * operator will be see as string and the int will stop there).
Is there any solution for my problem? Or will i have to use regexp?