Php Check If Associative Array

[Solved] Php Check If Associative Array | Php - Code Explorer | yomemimo.com
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

Answers related to php check if associative array

Code Explorer Popular Question For Php