Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php: foreach loop

Copyfor($i = 0; $i < 5; $i++){
     echo $i;
}

$luckyNums = [4, 8, 15, 16, 23, 42];
foreach($luckyNums as $luckyNum){
     echo $luckyNum."<br>";
}
Source by www.mikedane.com #
 
PREVIOUS NEXT
Tagged: #foreach #loop
ADD COMMENT
Topic
Name
7+5 =