Break & Continue in PHP - Become a PHP Master - 14

preview_player
Показать описание
break ends a loop completely, continue just shortcuts the current iteration and moves on to the next iteration.

BREAK:
break ends execution of the current for, foreach, while, do-while or switch structure.

CONTINUE:
continue is used within looping structures to skip the rest of the current loop iteration and continue execution at the condition evaluation and then the beginning of the next iteration.
#PHPTutorial #PHPForBeginners #AtifNaseem
Рекомендации по теме
visit shbcf.ru