I\'m studying for the Zend PHP certification.
Not sure the answer to this question.
Question: What is the best way to iterate and mod
From these options C would be the obvious answer.
The remaining options (besides A) may be used to achieve that, depending on the code inside the parenthesis, but the question does NOT show that code. So it must be C.
And you are answering the wrong question - yes doing count() before the for cycle will improve performance, but this question is not about performance.