PHP For Loop Working : <p>I have few lines of code that I think will work normally in any language. But this is not working in PHP. In my case I want to print numbers in ascending order. The code I have written is below:</p>

<pre><code>$i = 0;
printf("&lt;p&gt;Numbers in Ascending Order : ");
for (;++i &lt;= 10;) {
    printf("%3d", $i);
    printf("\n\n");
} 
</code></pre>

<p>But I get a syntax error which is given below:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected '&lt;=' (T_IS_SMALLER_OR_EQUAL),
  expecting</p>
</blockquote>

<p>Why is PHP displaying an error message like this ?</p>
