Note:
Whenforeachfirststartsexecuting,theinternalarraypointerisautomaticallyresettothefirstelementofthearray.Thismeansthatyoudonotneedtocallreset()beforeaforeachloop.
Asforeachreliesontheinternalarraypointer,changingitwithintheloopmayleadtounexpectedbehavior.
Note:
foreachdoesnotsupporttheabilitytosuppresserrormessagesusing@.
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |