i am trying to count a result of a array i get back from a script. there are two cases that i can get back option a is
Array ( [Id] => 1779 [SupplierId] => 1809 [SupplierName] => cccccc)
And second option ib
Array (
[0] => Array ( [Id] => 2020 [SupplierId] => 1809 [SupplierName] => vvv)
[1] => Array ( [Id] => 2058 [SupplierId] => 1809 [SupplierName] => bbb)
[2] => Array ( [Id] => 2063 [SupplierId] => 1809 [SupplierName] => xx)
)
if i do count in to cases i get back 3 How can i count that in option A i get back 1, and in option B i will get back 3 ?