title: A variable in PHP that get increased by himself?
body: <p>A weird problem.
  I'm trying to use <a href="http://medoo.in/" rel="nofollow noreferrer">medoo</a> with sqlite file to get some data. I'm receving a multidimensional array.  I've checked with <code>print_r</code> that the data is really in it.</p>
  <p>This is the <code>print_r</code> output (short version):</p>
  <pre><code>Array (
  [0] =&gt; Array ( [id] =&gt; 1 [name] =&gt; aaa ) 
  [1] =&gt; Array ( [id] =&gt; 2 [name] =&gt; bbb ) 
  [2] =&gt; Array ( [id] =&gt; 3 [name] =&gt; ccc ) 
  [3] =&gt; Array ( [id] =&gt; 4 [name] =&gt; ddd ) 
  [4] =&gt; Array ( [id] =&gt; 5 [name] =&gt; eee ) ...
  )
  </code></pre>
  <p>This is my code:</p>
  <pre><code>$datas = $database-&gt;select(&quot;suppliers&quot;,&quot;*&quot;);
  print_r ($datas);
  $length=count($datas);
  $i = 0;
  while ( $i &lt; $length ) {
      echo $i;
      echo '&lt;a href=&quot;edit_sup.php?sup='.$datas[$i][&quot;id&quot;].&quot;&gt;&quot;.$datas[$i][&quot;name&quot;].&quot;&lt;/a&gt;&lt;br/&gt;&quot;;
      echo $i;
      $i++;
      }
  </code></pre>
  <p>The problem is that not all the data get printed!
  While trying to print the var <code>$i</code>, I've discovered that before and after the <code>a href</code> the value is different! For example, the output is something like that:</p>
  <pre><code>0 bbb
  21 ddd
  43 fff
  </code></pre>
  <p>As you can see, in the first line <code>aaa</code> supposed to be printed - but <code>bbb</code> is printed instead, and <code>aaa</code> isn't printed at all! (and so on...)</p>
  <p>Any idea why this is happening? thanks.</p>