title: I have 6 values in array but when I execute, only 4 values are showed. why?
body: <p>I have 6 values in array <code>$arr1</code> but when I execute the code, only 4 values are shown, why?
  The code finds that the maximum value is 526, but where I use <code>echo</code> to list the whole array the 526-valued array is not shown.</p>
  
  <p><strong>Here is the code:</strong> </p>
  
  <pre><code>&lt;?php
  $arr1[0][ ]=110;
  $arr1[0][ ]=20;
  $arr1[0][ ]=526;
  $arr1[1][ ]=105;
  $arr1[1][ ]=56;
  $arr1[1][ ]=96;
  echo "The given array is : &lt;br&gt;";
  for($i=0;$i=count($arr1);$i++)
  {
      for($j=0;$j=count($arr1);$j++)
      {
          Echo "\$arr1[$i][$j] =",$arr1[$i][$j],"&lt;br&gt;";
      }
  }
  $b=0;
  foreach($arr1 as $val)
  {
      foreach($val as $key=&gt;$val1)
      {
          $b=$val1;
      }
  }
  Echo "The maximum value in the array is =",$b;
  ?&gt;
  </code></pre>