title: Array inside Array in PHP - How to get the values?
body: <p>I have a simple code that generate an array inside other array. I'm with trouble to echo out the values</p>
  
  <pre><code>&lt;?php
  
  require('phpQuery/phpQuery.php');
  
  $doc = phpQuery::newDocumentFileHTML('teste.htm');
  
  //echo $doc['center a']-&gt;value('href');
  //echo $doc['center a']-&gt;text();
  
  foreach ($doc['center a'] as $a) {
      $hrefs[] .= array(pq($a)-&gt;text() =&gt; pq($a)-&gt;attr('href'));
  }
  
  //$hrefs = array_filter($hrefs);
  print_r ($hrefs);
  
  ?&gt;
  </code></pre>
  
  <p>What I got is:</p>
  
  <pre><code>Array ( [0] =&gt; Array [1] =&gt; Array [2] =&gt; Array [3] =&gt; Array [4] =&gt; Array [5] =&gt; Array [6] =&gt; Array [7] =&gt; Array [8] =&gt; Array [9] =&gt; Array [10] =&gt; Array [11] =&gt; Array [12] =&gt; Array [13] =&gt; Array [14] =&gt; Array [15] =&gt; Array [16] =&gt; Array [17] =&gt; Array [18] =&gt; Array [19] =&gt; Array [20] =&gt; Array [21] =&gt; Array [22] =&gt; Array [23] =&gt; Array [24] =&gt; Array [25] =&gt; Array [26] =&gt; Array [27] =&gt; Array [28] =&gt; Array [29] =&gt; Array [30] =&gt; Array [31] =&gt; Array [32] =&gt; Array [33] =&gt; Array [34] =&gt; Array [35] =&gt; Array [36] =&gt; Array [37] =&gt; Array [38] =&gt; Array [39] =&gt; Array [40] =&gt; Array [41] =&gt; Array [42] =&gt; Array [43] =&gt; Array [44] =&gt; Array [45] =&gt; Array [46] =&gt; Array [47] =&gt; Array [48] =&gt; Array [49] =&gt; Array [50] =&gt; Array [51] =&gt; Array [52] =&gt; Array [53] =&gt; Array [54] =&gt; Array [55] =&gt; Array [56] =&gt; Array [57] =&gt; Array [58] =&gt; Array [59] =&gt; Array [60] =&gt; Array [61] =&gt; Array [62] =&gt; Array [63] =&gt; Array [64] =&gt; Array [65] =&gt; Array [66] =&gt; Array [67] =&gt; Array ) 
  </code></pre>
  
  <p>How can I see the values inside "Array"? Give me some clues.</p>
  
  <p>Best Regards,   </p>