title: Push the same element x times onto the array
body: <p>Basically I need to create this array (given x = 3)</p>
  
  <pre><code>array('?','?','?');
  </code></pre>
  
  <p>I could do </p>
  
  <pre><code>for($i=0;$i&lt;3;$i++)
      $arr[]='?';
  </code></pre>
  
  <p>But it's not so elegant. Is there any other way?</p>