PHP for loop is used to repeat execution of statement until a certain condition is true. First thing to do in the for loop is to initialize/to assign value to your variable, next is the conditional statement and last is the increment/decrement.
PHP Code
<?php
for($i=1;$i<=10;$i++)
{
echo $i;
}
?>
Output
0 comments:
Post a Comment