<?php
$result1 = 7 + 8 * 9/3 -4;
$result2 = 7 + 8 * (9/3 -4);
$result3 =(7 + 8)* 9/3 -4;
echo "Result1 for 7 + 8 * 9/3 -4 = $result1 Result2
for 7 + 8 * (9/3 -4) = $result2 and Result3 (7 + 8)* 9/3 -4
= $result3 "
/*
which gives results as under
Result1 for 7 + 8 * 9/3 -4 = 27 Result2 for 7 + 8 * (9/3
-4) = -1 and Result3 (7 + 8)* 9/3 -4 = 41
Execution Order is 1) expression in brackets 2) division 3)
multiplication 4) addition and 5) subtraction
*/
?>
----
Server IP: 69.147.83.197
Probable Submitter: 208.72.122.102
----
Manual Page -- h
ttp://www.php.net/manual/en/language.operators.php
Edit -- https://master
.php.net/note/edit/78397
Del: integrated -- h
ttps://master.php.net/note/delete/78397/integrated
Del: useless -- http
s://master.php.net/note/delete/78397/useless
Del: bad code -- htt
ps://master.php.net/note/delete/78397/bad+code
Del: spam -- https:/
/master.php.net/note/delete/78397/spam
Del: non-english --
https://master.php.net/note/delete/78397/non-english
Del: in docs -- http
s://master.php.net/note/delete/78397/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78397
Reject -- https://mast
er.php.net/note/reject/78397
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|