Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php endwhile

<?php
/* example 1 */

$i = 1;
while ($i <= 10) {
    echo $i++;  /* the printed value would be
                   $i before the increment
                   (post-increment) */
}

/* example 2 */

$i = 1;
while ($i <= 10):
    echo $i;
    $i++;
endwhile;
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #endwhile
ADD COMMENT
Topic
Name
9+9 =