Re: [RFC] Add is_assoc_array() function

From: Date: Sun, 22 Feb 2026 18:06:13 +0000
Subject: Re: [RFC] Add is_assoc_array() function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-130127@lists.php.net to get a copy of this message
Hi On 2/21/26 03:35, Muhammed Arshid KV wrote:
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
Besides what the others have already mentioned: Please make sure to fill in the RFC template carefully. Quite a number of sections still contain placeholder values with instructions as to how the section is supposed to be filled in. The “Voting Choices” section is a particular obvious example here. With regard to the “RFC Impact” section, the RFC mentions:
Such functions can be replaced with the built-in implementation.
This is not necessarily true. The existing userland function might behave differently to the proposed function. Even though adding new functions is not considered a BC break as per our policy, there is an expectation to do some research as to what the impact of adding the function would be. Please include this research, the RFC template provides some advice on how to do that. Please also make sure to include a link to the ML discussion in the References section for future reference. The correct link is this one: https://news-web.php.net/php.internals/130115 Best regards Tim Düsterhus

« previous php.internals (#130127) next »