Contact US


Get Your Project Done by our experts
info@fundaofwebit.com

For loop in PHP


for loop

It executes a block of code until the given condition is true.

Syntax :

for( initialization ; condition ; increment/decrement)

Example :

<?php

for($i = 0$i <5$i++)
{
    echo $i;
}

?>


Output for the above code : 01234