Using the PHP Modulo Operator
Last Updated on: September 16, 2022 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…