This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* for loops | |
* where to start; when to continue; how to step through | |
**/ | |
for($i = 0; $i < 10; $i++){ | |
// start at i = 0 and continue until i is >= 10 | |
echo $i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Mathematical Comparison Operators | |
* x > y, is x greater than y? | |
* x >= y, is x greater than OR equal to y? | |
* x < y, is x less than y? | |
* x <= y, is x less than OR equal to y? | |
* | |
* Logical Comparison Operators | |
* x == y, does x have the same value as y? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Mathematical Operations | |
* Addition, +, 5+2 = 7 | |
* Subtraction, -, 5-2 = 3 | |
* Multiplication, *, 5*2 = 10 | |
* Division, /, 5/2 = 2.5 | |
* Modulus, %, 5%2 = 1 | |
* | |
* Short Hand Operations |
NewerOlder