title: Getting the count of the second index in a muti-dimensional array PHP
body: <p>I want to get the count for the second index in an array, and have searched for quite a while, but still haven't found an answer, and still have no idea how. Please take a look:</p>
  
  <pre><code>$array[0][0] = 1;
  $array[0][1] = 2;
  $array[0][2] = 3;
  
  $arrayCount = count($array);
  echo $arrayCount;
  </code></pre>
  
  <p>output would be: </p>
  
  <pre><code>1
  </code></pre>
  
  <p>However, I actually want the count of the second index. If I am able to get it, the output would be:</p>
  
  <pre><code>3
  </code></pre>
  
  <p>Is there any way to get the count of the second index? Please let me know. Thank you. </p>