Re: [PHP-DEV] ArrayAccess and array_key_exists function

2024-02-22 Thread Tim Düsterhus
Hi (Robert, Ondrej, please apologize the duplicate mail, the list rejected my first attempt, because the previously used alias tim@ is no longer accepted as a valid sender, I'll need to update my subscription) On 2/20/24 14:21, Robert Landers wrote: I'd love to see all array_* functions acce

Re: [PHP-DEV] ArrayAccess and array_key_exists function

2024-02-20 Thread Robert Landers
On Mon, Feb 19, 2024 at 1:35 PM Ondřej Mirtes wrote: > > Hello everyone, > I was recently surprised that ArrayAccess does not work with > array_key_exists() function. > > I am aware that ArrayAccess objects cannot be made to work with many array > functions because it does not provide a way to i

Re: [PHP-DEV] ArrayAccess and array_key_exists function

2024-02-19 Thread Gina P. Banyard
On Monday, 19 February 2024 at 12:32, Ondřej Mirtes wrote: > Hello everyone, > I was recently surprised that ArrayAccess does not work with > array_key_exists() function. > > I am aware that ArrayAccess objects cannot be made to work with many array > functions because it does not provide a way

[PHP-DEV] ArrayAccess and array_key_exists function

2024-02-19 Thread Ondřej Mirtes
Hello everyone, I was recently surprised that ArrayAccess does not work with array_key_exists() function. I am aware that ArrayAccess objects cannot be made to work with many array functions because it does not provide a way to iterate over its keys, you can only ask for and set specific previousl