05. PHP Loops | PHP Tutorial | PHP | PHP course |

Опубликовано: 14 Июнь 2020
на канале: IT&IoT Tutorials
50
8

Hello everyone!
In today's tutorial I will explain how to use loops. Often when you write code, you want the same block of code to run over and over again a certain number of times. So, instead of adding several almost equal code-lines in a script, we can use loops. Loops are used to execute the same block of code, as long as a certain condition is true.
PHP supports following four loop types: for, while, do..while and foreach!

For loop 00:55
While loop 02:48
Do-While loop 04:56
Foreach loop 06:40