| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
- Cache class lookup
|
|
|
|
|
|
|
|
|
|
| |
intersect_key()
intersect_ukey()
diff_key()
diff_ukey()
The first two by a patch of Cristiano Duarte. The second two were
implemented in almost the same way except one small difference.
|
|
|
|
|
| |
# Should the LICENSE and Zend/LICENSE dates be updated too?
|
|
|
|
|
|
|
| |
to array_*diff* family of functions. Namely array_uintersect(), array_uintersect_assoc(),
array_intersect_uassoc() and array_uintersect_uassoc(). Test case is also included.
#docs and news entry later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
array_udiff()
array_udiff_assoc()
array_diff_uassoc()
array_udiff_uassoc()
They work like array_diff() or array_diff_assoc() but callback function(s)
can be used to perform the comparisons. For example array_udiff_uassoc()
expects 2 callbacks are last 2 parameters one is used to compare the values
of the entries in the arrays the second to compare the keys.
Class methods are also valid callbacks. Even when the data that should be
used in the comparison is private or protected then a static method of a
class should be used (this behaviour can be seen in the regression test -
007.phpt).
|
| |
|
|
|
|
|
| |
to an array.
|
|
|
|
|
|
|
|
| |
Creates an array by using the elements of the first parameter as keys and
the elements of the second as correspoding keys. Error is thrown in case
the arrays has different number of elements. Number of elements 0 is not
valid for both parameters.
|
| |
|
|
|
|
|
|
|
| |
but the keys are also used in the comparison. So the result is a subset of
the result of array_intersect().
Test will be committed too.
|
|
|
|
|
|
| |
additional checks on key values. Test script will be added too.
#My first patch . it feels strange :)
|
| |
|
|
|
|
|
| |
@ arrays (bug #16064). (Andrei)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
@- Renamed key_exists tp array_key_exists. (Derick)
#- Not sure if this belongs in NEWS, but it was already in a released
# version. And yes, I know I'm breaking BC here, but as it was not documented
# yet, that doesn't matter.
|
|
|
|
|
| |
@ size. (Andrei)
|
|
|
|
|
| |
function.
|
|
|
|
|
|
|
| |
lets you quickly create an array and initialize each element to a certain
value.
@ Add array_init() function (Rasmus)
|
|
|
|
|
|
|
| |
with all string keys lowercased or uppercased
@- Added array_change_key_case() function that returns array with
@ with all string keys lowercased or uppercased (EdinK)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
@ array or object (David Croft)
Added key_exists() to check if a given key or index exists in an array or object
|
|
|
|
|
|
| |
@ of given arrays and returns the result. It can also be used with a
@ null callback to transpose arrays. (Andrei)
|
|
|
|
|
| |
@ the specified callback. (Andrei)
|
|
|
|
|
|
|
|
| |
@ to a single value via a callback function. (Andrei)
- Added array_reduce(), which allows iterative reduction of an array
to a single value via a callback function.
- Fixed usage of zend_is_callable() in PCRE.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
called by
in_array and search_array (new)
@ Added search_array which works similar to in_array but returns
@ the key instead of a boolean. (jason@php.net)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Added a few RCS $Id$ tags.
# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
|
|
|
|
|
|
| |
@ order. Incidentally, it can be used to sort multi-dimensional arrays
@ as well. (Andrei)
|
|
|
|
|
|
|
|
|
| |
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"
All identifiers that begin with an underscore and either an uppercase
letter or another underscore are always reserved for any use by the
implementation.
|
| |
|
| |
|
|
|
|
|
| |
@ under the same keys. (Andrei)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
@- Added natural comparison/sorting routines strnatcmp(), strnatcasecmp(),
@ natsort(), and natcasesort(). These are useful for comparing and sorting
@ strings that contain numbers. Based on the code from Martin Pool
@ <mbp@humbug.org.au>. See http://www.linuxcare.com.au/projects/natsort/
@ for more info on natural sorting. (Andrei)
|
|
|
|
|
|
| |
Cleaned up extension namespace, and changed ext/standard into one single
extension.
|
|
|
|
|
|
|
| |
similar to ORDER BY SQL clause.
@ Added array_multisort() function. (Andrei)
# Docs are coming soon
|
| |
|
|
|
|
|
|
|
| |
Fix warnings compiling in maintainer mode.
Install DB/common.php and DB/mysql.php on "make install".
# We still have a warning from http_config.h:97. Rasmus? :-)
|
|
|
|
|
|
| |
@ flipped. (Thies)
(PHP array_flip) new function. no clash detection, only works for IS_STRING and IS_LONG datatypes in src-array.
|
|
|