title: How to use the value of a variable that is declared as an array ( ending with '[ ]' )?
body: <pre><code>&lt;?php $postid[] = get_the_ID(); // capture the id (a number) ?&gt;
  </code></pre>
  
  <p>Now If I echo <code>$postid</code> I just get: <strong>Array</strong></p>
  
  <p>and when I do the following:</p>
  
  <pre><code>&lt;?php
      $default = array(
          'posts_per_page' =&gt; $postid
      );
  ?&gt;
  </code></pre>
  
  <p>I don't get anything either.</p>
  
  <p>Any suggestions?</p>