How to check a PHP array whether it is associative or sequential?

Is it possible to differentiate and associative array and a sequential array? If so, can you please let me know how to do it?


  • Generally PHP treats all arrays as associative. There is not built-in function in PHP to check an associative array. But I hope that the following thread will be helpful.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion