PHP For Loop

In some cases we may need to complete a task in loop. To handle such situation, we have for loop in PHP. For Loop Lets begin with an example to understand the need of “for loop” Example Lets print 1 to 10 Solution: <?php $num=1; echo $num.'<br/>’; $num++ // incremented the value by 1 echo $num.'<br/>’; $num++ […]