SpiderPhp

Just another WordPress weblog

How Do I Find The Sizeof Of Php Multidimensional Arrays?

Posted Monday, July 6th, 2009
Tags: , , ,
Posted in Uncategorized | 2 Comments »

Hi, I know how to use the PHP sizeof function to find out the size of a one-dimensional array, such as sizeof($array), but this only gives me the size of the first dimension of a multidimensional array. Say it’s a two-dimensional array: how can I find out the size of the second dimension? Thanks!

How Do I Find The Sizeof Of Php Multidimensional Arrays?

Posted Monday, July 6th, 2009
Tags: , ,
Posted in Uncategorized | 2 Comments »

Hi, I know how to use the PHP sizeof function to find out the size of a one-dimensional array, such as sizeof($array), but this only gives me the size of the first dimension of a multidimensional array. Say it’s a two-dimensional array: how can I find out the size of the second dimension? Thanks!