i need to check if there is the name john more than 3 times in the names key within the following array that contains 4 different sub arrays
Array
(
[0] => Array
(
[total] => 4.2
[name] => john
)
[1] => Array
(
[total] => 2
[name] => john
)
[2] => Array
(
[total] => 3
[name] => adam
)
[3] => Array
(
[total] => 1.5
[name] => john
)
)
i was using mysql first but i prefer to use php instead