title: PHP returns the word array
body: <p>I have this php code:</p>
  
  <pre><code>$tunnid = array();
  while ($row = mysql_fetch_assoc($result)) {
      $tunnid[] = $row['total'];
  
    }
  
  $this-&gt;set('tunnid', $tunnid);
  mysql_free_result($result); 
  </code></pre>
  
  <p>And to display it, i have this:</p>
  
  <pre><code>&lt;?php
  if(!empty($tunnid)) {
      foreach($tunnid as $tund) {
  echo "$tunnid";
  
      }
  
  }
  </code></pre>
  
  <p>For some reason this returns ArrayArrayArrayArray</p>
  
  <p>What am i doing wrong here? Thanks</p>