1<documentation title="Condition-Only For Loops">
2    <standard>
3    <![CDATA[
4    For loops that have only a second expression (the condition) should be converted to while loops.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: A for loop is used with all three expressions.">
9        <![CDATA[
10for (<em>$i = 0</em>; $i < 10; <em>$i++</em>) {
11    echo "{$i}\n";
12}
13        ]]>
14        </code>
15        <code title="Invalid: A for loop is used without a first or third expression.">
16        <![CDATA[
17for (<em></em>;$test;<em></em>) {
18    $test = doSomething();
19}
20        ]]>
21        </code>
22    </code_comparison>
23</documentation>
24