brodywx Posted April 18, 2007 Share Posted April 18, 2007 how do I get the size of a sub array in a multidimensional array? if if I have an array like so: {'1', '2', '3'} , {'1', '2'} , {'1', '2', '3', '4'} how do I get the size of the second sub array, which should be 2? Link to comment https://forums.phpfreaks.com/topic/47646-getting-size-of-sub-array/ Share on other sites More sharing options...
per1os Posted April 18, 2007 Share Posted April 18, 2007 $num = count($array['indexofmultiarr']); Link to comment https://forums.phpfreaks.com/topic/47646-getting-size-of-sub-array/#findComment-232726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.