Hi internals,

I’ve proposed a small RFC to add *is_assoc_array(array $array):* bool to
the PHP core.

RFC: https://wiki.php.net/rfc/is_assoc_array

The function detects associative arrays using internal storage
*(HT_IS_PACKED)*.

Similar helpers exist in frameworks, and a native version would be faster
and more consistent.

No BC breaks. No impact on SAPIs or OPcache.

Feedback welcome.

Thanks,
Muhammed Arshid

Reply via email to