Introduction to PHP for Drupal Tutorial #7: PHP Loops

In this 7th PHP tutorial, I walk you through loops in PHP, specifically the for, while, do while and for each loops. In doing so, I show you some common errors when working with loops and flag some things you'll find common to Drupal module code. We conclude the tutorial with a quick look at break and continue statements.