title: Why this print only 0,1,2
body: <p>This nested for loops without curly brackets print only 0,1,2...
  When echo out the output of the first for loop it keeps running until 2.but final output is 0,1,2.. why is that? </p>
  
  <pre><code>&lt;?php 
  
      for($x = 0; $x&lt;3; $x++) 
          for($x = 0; $x&lt;3; $x++)
              echo $x;
  
  ?&gt;
  </code></pre>