Hey,

On 21.2.2026 03:35:11, Muhammed Arshid KV wrote:

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


What's the difference between the negation of array_is_list() and is_assoc_array()?


Bob

Reply via email to