title: PHP: What's the difference between initializing an array with "new" vs without it?
body: <p>I've always created arrays by just populating them</p>
  
  <pre><code>$foo[] = 'car';
  </code></pre>
  
  <p>but I've seen a lot of </p>
  
  <pre><code>$foo = array();
  $foo[] = 'car';
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$foo = new array();
  </code></pre>
  
  <p>What's the difference between not initializing, using array(), and using new array();?</p>
  
  <p>thanks!</p>