1<documentation title="Jumbled Incrementers">
2    <standard>
3    <![CDATA[
4    Incrementers in nested loops should use different variable names.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Two different variables being used to increment.">
9        <![CDATA[
10for ($i = 0; $i < 10; <em>$i++</em>) {
11    for ($j = 0; $j < 10; <em>$j++</em>) {
12    }
13}
14        ]]>
15        </code>
16        <code title="Invalid: Inner incrementer is the same variable name as the outer one.">
17        <![CDATA[
18for ($i = 0; $i < 10; <em>$i++</em>) {
19    for ($j = 0; $j < 10; <em>$i++</em>) {
20    }
21}
22        ]]>
23        </code>
24    </code_comparison>
25</documentation>
26