Re: [RFC] Add is_assoc_array() function

From: Date: Sat, 21 Feb 2026 02:43:44 +0000
Subject: Re: [RFC] Add is_assoc_array() function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-130116@lists.php.net to get a copy of this message
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

« previous php.internals (#130116) next »