I was doing some minor adjustments and i was puzzled why i could only get the last item from the loop. I found out the behavoir was created by a semi colon behind the round brackets.
$array = array(1,2,3);
foreach($array as $item);
{
echo $item;
}
Produces 3 and not 123 as expected.