title: PHP warning array to string conversion loop inside array key
body: <pre><code>&lt;?php  $student = array(
       1 =&gt; array(
           "firstname" =&gt; "first",
           "name" =&gt; "first",
           "group" =&gt; "grp01",
           "score" =&gt; array(
               "ASP" =&gt; 86,
               "PHP" =&gt; 79,
               "JAVA" =&gt; 72,
               "HTML" =&gt; 96,
               "JAVASCRIPT" =&gt; 98,
               "VBNET" =&gt; 66
           )
       ),
       2 =&gt; array(
           "firstname" =&gt; "second",
           "name" =&gt; "second",
           "group" =&gt; "grp01",
           "score" =&gt; array(
               "ASP" =&gt; 80,
               "PHP" =&gt; 70,
               "JAVA" =&gt; 71,
               "HTML" =&gt; 92,
               "JAVASCRIPT" =&gt; 90,
               "VBNET" =&gt; 78
           )
       ),
       3 =&gt; array(
           "firstname" =&gt; "third",
           "name" =&gt; "third",
           "group" =&gt; "grp02",
           "score" =&gt; array(
               "ASP" =&gt; 88,
               "PHP" =&gt; 88,
               "JAVA" =&gt; 89,
               "HTML" =&gt; 96,
               "JAVASCRIPT" =&gt; 98,
               "VBNET" =&gt; 71
           )
       )  ); ?&gt;
  
  &lt;?php
  
  foreach($student as $std) {
      foreach($std as $key =&gt; $p){
          echo $std[$key];
      } } ?&gt;
  </code></pre>
  
  <p>i am trying to print in echo each student with they average score but right now i am stuck i got a warning about array to string convertion can someone give me some hint how i am suppose to do my loop. </p>