title: Php doesn't catch next array element
body: <p>I have this array :</p>
  
  <pre><code>array (
    'cfop' =&gt; '3',
    'cst' =&gt; NULL,
    'cstPis' =&gt; '2',
    'cstCofins' =&gt; '1',
  )  
  </code></pre>
  
  <p>And this code:</p>
  
  <pre><code>while ($t = current($taxes))
  {
      $getkey = key($taxes);
      Log::debug($getkey);
  
      //$this-&gt;saveTaxes($getkey, $t, $add);
  
      $t = next($taxes);
  }
  </code></pre>
  
  <p>ps: <code>$taxes</code> is the array</p>
  
  <p>For some reason the <code>next</code> function doenst not pass the null value, so the log prints just cfop.</p>
  
  <p>If i change the order like this</p>
  
  <pre><code>array (
    'cfop' =&gt; '3',
    'cst' =&gt; '2',
    'cstPis' =&gt; NULL,
    'cstCofins' =&gt; '1',
  ) 
  </code></pre>
  
  <p>Logs will print <code>cfop</code> and <code>cst</code> but it does not reach the next value after NULL</p>