title: PHP Problem Array to string conversion using FetchAll
body: <p>I have recently started studying PHP and I'm using Zend Framework v1.12.
  I can't print the elements obtained by using <em>FetchAll()</em>.</p>
  <pre><code>$stmt = $db-&gt;query('SELECT * FROM team');
  
  $obj = $stmt-&gt;fetchAll();
  
  
  foreach ($obj as $value) {
      
      echo $value;
      
  }
  </code></pre>
  <p>This is the notice (repeated x7):</p>
  <blockquote>
  <p>Notice: Array to string conversion</p>
  </blockquote>
  <p>Using <em>var_dump</em> I have this:</p>
  <pre><code>array(7) { 
     [0]=&gt; array(2) {[&quot;id_team&quot;]=&gt; string(1) &quot;1&quot; [&quot;nameteam&quot;]=&gt; string(10) &quot;Ac Picchia&quot; } 
     [1]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;2&quot; [&quot;nameteam&quot;]=&gt; string(4) &quot;test&quot; } 
     [2]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;3&quot; [&quot;nameteam&quot;]=&gt; string(4) &quot;ciao&quot; } 
     [3]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;4&quot; [&quot;nameteam&quot;]=&gt; string(2) &quot;oi&quot; } 
     [4]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;5&quot; [&quot;nameteam&quot;]=&gt; string(3) &quot;xtz&quot; } 
     [5]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;6&quot; [&quot;nameteam&quot;]=&gt; string(3) &quot;123&quot; } 
     [6]=&gt; array(2) { [&quot;id_team&quot;]=&gt; string(1) &quot;7&quot; [&quot;nameteam&quot;]=&gt; string(1) &quot;x&quot; } } 
  </code></pre>