📜  for loop php continue to next item - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.305000             🧑  作者: Mango

代码示例1
$stack = array('first', 'second', 'third', 'fourth', 'fifth');

foreach($stack as $v){
    if($v == 'second') {
      continue;
    }
    echo $v.'
'; } /* first third fourth fifth */