check if an associative array is 0 php code example Example: php check array is not associative count(array_filter(array_keys($array), 'is_string')) === 0