Answers for "php skip foreach loop 1"

PHP
0

php skip loop

for ($i=0; $i <= 12; $i++) {
  if($1 == 5){
  	continue;
  }
  //code block
  
  //code block ends
}
Posted by: Guest on April-08-2021
0

skip an iteration php

<?php 
for ($x = 0; $x < 10; $x++) {
  if ($x == 4) {
    
  continue;
  }
  echo "The number is: $x <br>";
}
?>
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language