let's say we have a string like:
"23+sqrt(53)*7"
Is there any way to convert this to a number and print the result of it?
let's say we have a string like:
"23+sqrt(53)*7"
Is there any way to convert this to a number and print the result of it?
$string = "23+sqrt(53)*7";
$number = eval('return ' . $string . ';');
echo $number;