https://lavrynenko.com/uroki-php-loop/
Уроки PHP - loop