Sunday, January 24, 2016

FOR LOOP IN PHP: Display Numbers Using For Loop

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



FOR LOOP IN PHP: Display Numbers Using For Loop

FOR LOOP IN PHP: Display Numbers Using For Loop Rating: 4.5 Diposkan Oleh: Emoblazz

0 comments:

Post a Comment