Using the PHP Modulo Operator
The modulo operator is very useful and often underused. To best describe what it does, I will give an example of where it is useful. First, imagine you are looping through an array of monkeys and want to highlight every third monkey in bold. This is how it is done using the modulo operator: In…