Lesson 10 PHP while loops

5 Aug 2023 · 7 min
7:11

While loops repeat code as long as a condition is true. A simple example counts from 0 to 4 by checking if i is less than 5 each time. Avoid infinite loops like while(true), and when waiting for something external, use a counter or timeout instead of a condition that might never become false.

Chapters

More from Waylee

0:16
youtube.com

August 23, 2024

2y ago
10:07
youtube.com

login tutorial #1

3y ago
4:30
youtube.com

Lesson #14: PHP $ GET

3y ago
6:24
youtube.com

Lesson 13 PHP Forms

3y ago
6:00
youtube.com

Lesson 12 PHP Functions

3y ago
3:57
youtube.com

Lesson #11: PHP FOR loops

3y ago
6:53
youtube.com

Lesson #9: PHP Arrays

3y ago
6:27
youtube.com

Lesson #8: PHP Switch

3y ago
8:25
youtube.com

Lesson #7: PHP If else statements

3y ago
11:10
youtube.com

Lesson #6: PHP Operators

3y ago
11:10
youtube.com

Lesson #5: PHP Strings

3y ago
See all content