title: In php, Number of rows and columns in a 2 D array?
body: <p>I have a two dimensional array with unknown number of elements. </p>
  
  <p><code>$two_darray[row][column]; //there will be an unknown integer values instead of row and column keywords</code></p>
  
  <p>If I were to write a <code>for</code> loop as follows, how can I determine how many rows and columns in my <code>$two_darray</code>. Can you please tell me if there is a library function in php that can tell me the value inside [????] [????]</p>
  
  <pre><code>for($row=0; $row&lt;………; $row++)
  {
      for($column =0; $column  &lt;………; $ column ++)
      {
          echo $two_darray[$row][$column];
      }
      echo “\n end of one column \n”;
  }
  </code></pre>
  
  <p>I really need to know the value of rows and columns in order to perform other calculations.</p>