title: What kind of array does PHP use?
body: <p>I can define an <code>array</code> in PHP like this:</p>
  
  <pre><code>$array = array();
  </code></pre>
  
  <p>In C++, we have two kinds of array. </p>
  
  <ol>
  <li><p>The first kind is a fixed size array, for example:</p>
  
  <pre><code>int arr[4]; // 4 ints, hardcoded size
  </code></pre></li>
  <li><p>The second kind is a dynamic sized array</p>
  
  <pre><code>std::vector&lt;int&gt; v; // can grow and shrink at runtime
  </code></pre></li>
  </ol>
  
  <p>What kind of array does PHP use? Are both kinds of arrays in PHP? If so, can you give me examples?</p>