If I have an array such as -
Products (
'ProductA' (
'color' => 'red',
'serial' => '1234a'
),
'ProductB' (
'color' => 'blue',
'size' => 'large'
),
'ProductC' (
'color' => 'green',
'serial' => '4567b'
)
)
is there a way to do something like -
count($products[*]['serial'])
I just need a count of all the products that have the 'serial' index.... using [] and [*] does not work.