Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

for loop php continue to next item

$stack = array('first', 'second', 'third', 'fourth', 'fifth');

foreach($stack as $v){
    if($v == 'second') {
      continue;
    }
    echo $v.'<br>';
}
/*
first
third
fourth
fifth
*/ 
 
PREVIOUS NEXT
Tagged: #loop #php #continue #item
ADD COMMENT
Topic
Name
6+7 =