This seems like a very stupid question, but without making any changes to the server.. the continue function in PHP seems to have started working incorrectly.
For example:
function contTest(){
$testers = array(1, 3, 4, 5);
foreach($testers as $test){
echo "Got here<br>";
continue;
echo $test."<br>";
}
}
Outputs:
Got here
Got here
Got here
Got here
Whereas:
function contTest(){
$testers = array(1, 3, 4, 5);
foreach($testers as $test){
echo "Got here<br>";
echo $test."<br>";
}
}
Ouputs:
Got here
1
Got here
3
Got here
4
Got here
5
I have used this function before and it did not seem to have this effect. Any ideas? Like I said, nothing on the server has changed so the PHP version is the same.