Solution for "php count array keys"

$cnt = count(array_filter($array,function($element) { return $element['your_key']=='foo'; }));

php count array elements with specific key

Similar codes for "php count array keys"


Latest 'PHP' questions

Added before "php count array keys"