PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 Tutorial @ProgramWithGio
PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 Tutorial  @ProgramWithGio
Uploaded December 2020 | Updated November 2026, 3 hours ago
Loops are simple but there are some important things that you need to be aware of when working with them, such as performance, things to be aware of when working with references, how to break out of nested loops, how to handle infinite loops & so on. Loop is basically a control structure that allows you to execute a block of code or multiple statements N times until a given condition evaluates to false or you manually break out of the loop. In this video, we cover while loops, do-while loops, for loops & foreach loops with examples on iterating over strings, arrays, and so on.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: patreon.com/programwithgio
THANK YOU!

LESSON 1.16
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

CHAPTERS
00:00 - Intro
00:15 - While loop
01:05 - Infinite loops
01:32 - Break statement & use-case of an infinite loop
02:05 - Break out of multiple levels of nested loops
02:31 - Continue statement
03:32 - Alternative while loop syntax
03:47 - Do-While loop
04:26 - For loop
05:07 - Multiple expressions within for loop
05:48 - Iterate over strings
06:09 - Iterate over arrays
06:23 - Performance concerns
07:20 - Foreach loop
08:38 - Overwriting array elements using assignment by reference
09:15 - Something to be aware of - variable within the foreach loop is not destroyed
10:30 - Iterate over associative arrays
11:48 - Alternative foreach & for loop syntax
PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 TutorialHow to Pass Authenticated User to the Request - Build Expense Tracker App With PHP 8Doctrine ORM - PHP Entities & Data Mapper Pattern - Full PHP 8 TutorialPHP Traits - How They Work & Drawbacks - Full PHP 8 TutorialControl Structures in PHP - Conditional Statements - if/else - Full PHP 8 TutorialUpload Transaction Receipts With Proper File Validation - Build Expense Tracker App With PHP 8Little Refactoring Never Hurt Nobody - Full PHP 8 TutorialPHP Iterators & Iterable Type - Iterate Over Objects - Full PHP 8 TutorialLaravel Fortify SPA Authentication with Laravel Sanctum without JetstreamPHP MVC Pattern - View Parameters Exploit - Full PHP 8 TutorialSet Up Expennies Project Locally - Build Expense Tracker App With PHP 8Import Transactions Exercise Solution Overview - Build Expense Tracker App With PHP 8
Program With Gio |

PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER