]> granicus.if.org Git - php/commit
Merge branch 'pull-request/287'
authorSherif Ramadan <googleguy@php.net>
Wed, 30 Oct 2013 13:36:19 +0000 (09:36 -0400)
committerSherif Ramadan <googleguy@php.net>
Wed, 30 Oct 2013 13:36:19 +0000 (09:36 -0400)
commit98c9e56ef0be89953729754bd9949e14c7248c15
tree53f3c02afd4338b05d7d03f83cdb69953e2b07d5
parent4218e89f8df4ca3897e3aad595e0c2c9cf4c3aca
parent75ba75e2055d670e204e6361732995ba27b05896
Merge branch 'pull-request/287'

Add ability to use array keys with array_filter().
This adds a third (optional) argument to array_filter() that will determine
what gets passed to the callback, the array key, value or both.
The third argument can be one of two constants: ARRAY_FILTER_USE_BOTH or,
ARRAY_FILTER_USE_KEY.
ext/standard/array.c
ext/standard/basic_functions.c