Repetition loops: learning how to use for, foreach, while, and dowhile - examples with PHP

Опубликовано: 23 Февраль 2026
на канале: WDEV
4,762
248

In today's video, we're going to talk about loops and learn when and where to use `for`, `foreach`, `while`, and `dowhile`.

In this video, we'll use examples in PHP, but you can use the same logic in other languages, just slightly altering the syntax.

_________

Video Requirements:

PHP 7 or higher

-------------

PHP:

Linux: https://www.digitalocean.com/communit...

Mac: https://jasonmccreary.me/articles/ins...

Windows: https://www.apachefriends.org/pt_br/d...

________

Social Media:
Instagram:   / wdevoficial  
Facebook:   / wdevoficial  
Twitter:   / wdevoficial  

________

Credits: Opening uses videos from Pexel (https://www.pexels.com/) by authors Carlos Arribas, Joseph Redfield and BuildWith Angga

________
#php #loops #wdev