Saturday 27 May 2017

the most important Flowchart of php

PHP for loop can be used to traverse set of code for the specified number of times.

It should be used if number of iteration is known otherwise use while loop.

Syntax

for(initialization; condition; increment/decrement){  

//code to be executed  

}  

Flowchart

php for php for loop flowchartloop flowchart

Example

<?php  

for($n=1;$n<=10;$n++){  

echo "$n<br/>";  

}  

?> 

No comments:

Post a Comment