php 3a foreach loop

Solutions on MaxInterview for php 3a foreach loop by the best coders in the world

showing results for - "php 3a foreach loop"
Emil
29 May 2020
1Copyfor($i = 0; $i < 5; $i++){
2     echo $i;
3}
4
5$luckyNums = [4, 8, 15, 16, 23, 42];
6foreach($luckyNums as $luckyNum){
7     echo $luckyNum."<br>";
8}