title: Best way to clear a PHP array's values
body: <p>Which is more efficient for clearing all values in an array? The first one would require me to use that function each time in the loop of the second example.</p>
  
  <pre><code>foreach ($array as $i =&gt; $value) {
      unset($array[$i]);
  }
  </code></pre>
  
  <p>Or this</p>
  
  <pre><code>foreach($blah_blah as $blah) {
      $foo = array();
      //do something
      $foo = null;
  }
  </code></pre>