Thursday, August 11, 2022

do-While Loops in php | PHP Tutorial #14

 youtube:

https://www.youtube.com/watch?v=LMhQAErF8J0&list=PLu0W_9lII9aikXkRE0WxDt1vozo3hnmtR&index=14


Blogspot:

https://www.codewithharry.com/videos/php-tutorials-in-hindi-14/


<?php

echo "Welcome to do while loops <br>";

/*

do {
    some lines of code to be executed here;
    ...
} while(condition);

*/

$i = 0;

do{
    echo "$i <br>";
    $i++;
}while($i<5);
?>

No comments:

Post a Comment