The question is simple. I have a foreach loop in my code:
foreach
foreach($array as $element) { //code }
In this loop, I want to r
Best answer:
$arr = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); foreach ($arr as $a) { // This is the line that does the checking if (!each($arr)) echo "End!\n"; echo $a."\n"; }