If I have an array that looks like this:
Array ( [Name0] => Doe [Age0] => Array ( [0] => 23 [1] => 28 [2] => 32 [3] => 11 [4] => 9)
[Name1] => Smith [Age1] => Array ( [0] => 7 [1] => 8 [2] => 9 )
[Name2] => Jones [Age2] => Array ( [0] => 54 [1] => 42 )
[submit] => Submit
)
And I want to count only the [Name(x)] arrays (so that the output would be 3), how would I do that?
I looked at count() but that counts the [Age] and [submit] also. Thanks.