Youtube:
https://www.youtube.com/watch?v=86tJIr6qpNQ&list=PLu0W_9lII9aikXkRE0WxDt1vozo3hnmtR&index=12
Blogpost:
https://www.codewithharry.com/videos/php-tutorials-in-hindi-12/
Code as described/written in the video
<?php
echo "while loops in php";echo"<br>";
// echo 1;echo"<br>";
// echo 2;echo "<br>";
// echo 3;echo "<br>";
// echo 4;echo "<br>";
// echo 5;echo "<br>";
/*
while (condition){
some lines of code here;
}
*/
$i = 0;
while($i<5){
echo "The value of i is ";
echo $i+1;
echo "<br>";
$i+=1;
}
?>
No comments:
Post a Comment