title: Creating an array with $x elements in PHP
body: <p>How would I create an array in PHP that has <code>$x</code> empty elements? The <code>$x</code> is unknown and varying value. For example, if I wanted to create an array of 3 elements, I could just do:</p>
  
  <pre><code>$array = array(null,null,null);
  </code></pre>
  
  <p>However, I don't know what <code>$x</code> is and there could be million elements, I need to do this automatically.</p>