Re: PR 287 - added use_keys argument to array_filter() [Discussion]
| From: | Leigh | Date: | Tue, 18 Jun 2013 17:07:58 +0000 |
| Subject: | Re: PR 287 - added use_keys argument to array_filter() [Discussion] | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67726@lists.php.net to get a copy of this message | ||
On 18 June 2013 18:04, Patrick Schaaf <bof@bof.de> wrote:
>
> Another alternative might be to go with a third argument to array_filter(),
> but make that an integer with ORable constants ARRAY_FILTER_KEY,
> ARRAY_FILTER_VAL - only one of them set calls with a single argument, both
> set call with two arguments.
>
That look like a fairly decent compromise of all the suggestions so far.