andrei Mon Mar 19 13:20:03 2001 EDT
Modified files:
/php4/ext/standard array.c basic_functions.c php_array.h
Log:
@- Added array_map() function that applies a callback to the elements
@ of given arrays and returns the result. It can also be used with a
@ n
andrei Fri Mar 16 12:46:35 2001 EDT
Modified files:
/php4/ext/standard array.c basic_functions.c php_array.h
Log:
@- Added array_filter(), which allows filtering of array elements via
@ the specified callback. (Andrei)
Index: php4/ext/standard/array.c
Andrei Zmievski wrote:
>
> On Tue, 20 Feb 2001, Jason Greene wrote:
> > Well,
> > My thoughts on this one were that if you are actually grabbing a key,
> > people are more
> > likely to trust that the returned key does in fact reference the value
> > that was searched. Perhaps defaulting to stri
On Tue, 20 Feb 2001, Jason Greene wrote:
> Well,
> My thoughts on this one were that if you are actually grabbing a key,
> people are more
> likely to trust that the returned key does in fact reference the value
> that was searched. Perhaps defaulting to strict is not a good idea, but to
> me it
Well,
My thoughts on this one were that if you are actually grabbing a key,
people are more
likely to trust that the returned key does in fact reference the value
that was searched. Perhaps defaulting to strict is not a good idea, but to
me it seemed logical, and I figured that if anyone else
in
andrei Tue Feb 20 06:23:03 2001 EDT
Modified files:
/php4/ext/standard array.c basic_functions.c php_array.h
Log:
Rename to array_search().
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.92 php4/ext/standard/array.c:1.93
--- php4/ext/
On Tue, 20 Feb 2001, Jason Greene wrote:
> + if (behavior == 0) {
> + compare_func = is_equal_function;
> + } else {
> + /* Lets not return a key unless the values are exact */
> + compare_func = is_identical_function;
> + }
Why not? Why should it b
jason Mon Feb 19 21:36:40 2001 EDT
Modified files:
/php4/ext/standard array.c basic_functions.c php_array.h
Log:
Moved the core of in_array into the function php_search_array, which is called by
in_array and search_array (new)
@ Added search_array which
8 matches
Mail list logo