經安全檢測,此網站為安全網站,請放心前往原始網址!

for loop - PHP - Break after return? - Stack Overflow

If you use return, your function (or entire script) will return - all code after that won't be executed. So to answer your question: a break is not required here. However, if the break was not commented out here, the loop would have stopped after one iter

stackoverflow.com

網址安全性掃描由 google 提供