Say I have a string, $char. $char == \"*\".
$char. $char == \"*\".
I also have two variables, $a and $b, which equal \"4\" and \"5\" respectively.
How do I get the res
The easiest but most dangerous method is to use eval.
eval
$c = eval("return $a $char $b;");