php doesn't fetch end of array
<p><code>foreach</code> doesn't fetch end of array. I want to use end of that in another method:</p>

<pre><code>$array = array(
"Language programings"=&gt;array("php" =&gt; 100,"js" =&gt; 200),'html'=&gt;12);
 foreach ($array as $kk=&gt;$val1)
   {
     echo $kk.'&lt;br/&gt;';
     foreach ($val1 as $key=&gt;$val2)
      {  
         if (! end(array_keys($array)))
             echo $val2;
      }
      echo end(array_value);//must be show 12
   }
</code></pre>
