I have a large Math equation in a string. How can I get PHP to calculate it?
eg.: The string is something like this:
45+32-5/8*55
How? Thanks!
Urgent Help Needed! Plz help!
Started by Kokkei Mizu, Mar 13 2006 09:52 PM
4 replies to this topic
#1
Posted 13 March 2006 - 09:52 PM
#2
Posted 13 March 2006 - 10:08 PM
well lets see here...
<?
echo 45+32-5/8*55;
?>
<?
echo 45+32-5/8*55;
?>
Edited by coolaid, 13 March 2006 - 10:08 PM.
#3
Posted 13 March 2006 - 10:14 PM
but i have the string in a variable. and if i just go
echo $string;
it would echo it without calculating it...
echo $string;
it would echo it without calculating it...
#5
Posted 14 March 2006 - 06:30 PM
works great! thanks
Edited by Kokkei Mizu, 14 March 2006 - 06:31 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
