📅  最后修改于: 2022-03-11 14:53:58.305000             🧑  作者: Mango
$stack = array('first', 'second', 'third', 'fourth', 'fifth');
foreach($stack as $v){
if($v == 'second') {
continue;
}
echo $v.'
';
}
/*
first
third
fourth
fifth
*/