[RFC] Add is_assoc_array() function

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

« previous php.internals (#130115) next »