MODR 1760 Lecture 14: EECS1012 LECTURE NOTES_PHP5

12 views3 pages

Document Summary

The expression is always computed before the assignment. This allows us to use a variable and assign the result back to the. += ; = + ; addition. -= ; = - ; subtraction. *= ; = * ; multiplication. /= ; = / ; division. %= ; = % ; Compute results based on order of precedence, and from left to right in the expression. Php converts between types automatically in many cases: # the string was converted to an integer! *= 2; // is now an integer (2) = * 1. 3; // is now a float (2. 6) = 5 * "10 little piggies"; // is integer (50) = 5 * "10. 1 small pigs"; // is float (50. 5) = 4 / 2; // is still an integer (2)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions