Re: RFC [Discussion]: array_find

From: Date: Fri, 19 Apr 2024 21:17:44 +0000
Subject: Re: RFC [Discussion]: array_find
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-123163@lists.php.net to get a copy of this message
Hi On 4/19/24 22:08, Larry Garfield wrote:
There's another issue, though: Will the callback always be given both $value and $key?
The current implementation always passes both, which, as I just learned, is inconsistent with array_filter which has the $mode parameter to control what to pass to the callback. Not that I claim that the $mode parameter is a good idea from the typing perspective for static analysis tools, it probably isn't. Best regards Tim Düsterhus

« previous php.internals (#123163) next »