skip current iteration

前端 未结 4 1196
醉话见心
醉话见心 2020-12-28 11:44

I have a php array $numbers = array(1,2,3,4,5,6,7,8,9)

if I am looping over it using a foreach foreach($numbers as $number)

and hav

4条回答
  •  青春惊慌失措
    2020-12-28 12:19

    I suppose you are looking for continue statement. Have a look at http://php.net/manual/en/control-structures.continue.php

    dinel

提交回复
热议问题