I have an array like that:
(
(0) => Array
(
(uid) => '100',
(name) => 'Blue t-shirt 4 years',
(ean) => '123456'
),
(1) => Array
(
(uid) => '5465',
(name) => 'blue shirt 24 years',
(ean) => '123'
),
(2) => Array
(
(uid) => '40489',
(name) => 'Shirt 4 Years',
(ean) => '12345'
)
);
I am trying to count how many entries in the array have all the words on the key name "shirt 4 years" case insensitive or have the same 'ean' number.
In that case would return 2. What's the best way to do that?