Month: December 2017

Lesson 14 – PHP for loop Example

PHP for loop Similar to the while loop, the for loop can be used to execute statements as long as a particular condition is met. The syntax of the for loop is as follows: <?Php for(start value, condition, looping) {  //  instructions } ?> An example would be: <?php for($i=0; $i < 10; $i++) { echo "$i, "; } ?> [...]

Read More