Php Endwhile

[Solved] Php Endwhile | Php - Code Explorer | yomemimo.com
Question : php endwhile

Answered by : ankur-prajapati

<?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 : https://www.php.net/manual/en/control-structures.while.php | Last Update : Mon, 21 Jun 21

Answers related to php endwhile

Code Explorer Popular Question For Php