title: Syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in for loop
body: <p>I am trying to parse some XML using PHP to get a status of my Farming Simulator 2013 Dedicated Server (no laughing please).  However, using a for loop to get the status of each possible player is not working.</p>
  
  <p>My code is as follows.</p>
  
  <pre><code>&lt;?php
      $info = simplexml_load_file('http://74.80.133.251:9090/feed/dedicated-server-stats.xml?code=049cb316c7d5137f7f285101d9657f13');
      $playerCount = $info-&gt;Slots['capacity'];
      echo $info-&gt;Slots['numUsed'];
      echo " slots out of ";
      echo $info-&gt;Slots['capacity'];
      echo " used.&lt;br&gt;";
      echo "&lt;ol&gt;";
      for ($1=0; $i&lt;$playerCount; $i++)
      {
              echo "&lt;li&gt;";
              echo $info-&gt;Slots-Player[$i]['isUsed'];
              echo "&lt;/li&gt;";
      }
      echo "&lt;/ol&gt;&lt;br&gt;";
  ?&gt;
  </code></pre>
  
  <p>The source XML is located at <code>http://74.80.133.251:9090/feed/dedicated-server-stats.xml?code=049cb316c7d5137f7f285101d9657f13</code> and I know it is fairly simple to parse in C#, but I do not know PHP all that well.  Does anyone see something (probably simple) I am missing or some ideas to try?</p>