Question : php check array is not associative
Answered by : jose-guerrero
count(array_filter(array_keys($array), 'is_string')) === 0
Source : https://stackoverflow.com/questions/173400/how-to-check-if-php-array-is-associative-or-sequential | Last Update : Thu, 10 Sep 20