array_search "all" value (not only the first one)

php.internals

Remi Collet

10 years ago
I think this is a small missing feature. Comment welcome on https://github.com/php/php-src/pull/2071 (don't know if such a small self-contained change need a RFC). Remi.

Nikita Popov

10 years ago
On Wed, Aug 10, 2016 at 3:37 PM, Remi Collet <remi@fedoraproject.org> wrote:
> I think this is a small missing feature. > > > Comment welcome on https://github.com/php/php-src/pull/2071 > > > (don't know if such a small self-contained change need a RFC). > > > Remi. > >
Hi, how does this differ from array_keys($array, $search)? Nikita

Remi Collet

10 years ago
Le 10/08/2016 à 15:58, Nikita Popov a écrit :
> On Wed, Aug 10, 2016 at 3:37 PM, Remi Collet <remi@fedoraproject.org > <mailto:remi@fedoraproject.org>> wrote: > > I think this is a small missing feature. > > > Comment welcome on https://github.com/php/php-src/pull/2071 > <https://github.com/php/php-src/pull/2071> > > > (don't know if such a small self-contained change need a RFC). > > > Remi. > > > Hi, > > how does this differ from array_keys($array, $search)?
Same thing ;) Except I have miss that one... Still don't known every options :p