For Loops
Lesson 25Author : GOUP
Last Updated : September, 2020
Video Code
for($i = 0; $i < 5; $i++){
echo $i;
}
$luckyNums = [4, 8, 15, 16, 23, 42];
foreach($luckyNums as $luckyNum){
echo $luckyNum."<br>";
}
for($i = 0; $i < 5; $i++){
echo $i;
}
$luckyNums = [4, 8, 15, 16, 23, 42];
foreach($luckyNums as $luckyNum){
echo $luckyNum."<br>";
}