15) While loop in PHP | Loops in PHP

Опубликовано: 30 Май 2026
на канале: programming_with_vinay
4
1

The while loop executes a block of code as long as the specified condition is true.

A "While" Loop is used to repeat a specific block of code an unknown number of times, until a condition is met. For example, if we want to ask a user for a number between 1 and 10, we don't know how many times the user may enter a larger number, so we keep asking "while the number is not between 1 and 10".

learn more on https://www.php.net