Simple math question
Posted: Sun Jun 20, 2010 6:49 am
I have this code:
How would I get $output to equal '2'?
Code: Select all
$input = "3-1";
$output = $input;A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$input = "3-1";
$output = $input;Code: Select all
eval("\$output = $input;");