If you use break inside inner loop, it breaks the. How break and continue while loop in PHP?ģ9.7k 27 gold badges 113 silver badges 167 bronze badgesīreak ends a loop completely, continue just shortcuts the current iteration and moves on to the next iteration. Bài 10: Lnh break, continue, goto, die, exit trong php. PHP break statement breaks the execution of the current for, while, do-while, switch, and for-each loop. ![]() ![]() Example 1 Here, we have an array of the names and breaking the loop execution when a specified string found.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |