summaryrefslogtreecommitdiff
path: root/ext/standard/php_array.h
Commit message (Collapse)AuthorAgeFilesLines
* - Bumber up yearfoobar2005-08-031-1/+1
|
* add function array_product()Andrey Hristov2005-05-111-0/+1
|
* - Use new way for global variablesMarcus Boerger2004-11-011-13/+0
| | | | | - Cache class lookup
* add array_:Andrey Hristov2004-07-211-0/+4
| | | | | | | | | | 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.
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* New array functions for doing intersection of arrays that are complementaryAndrey Hristov2003-10-091-0/+4
| | | | | | | 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.
* 4 new functions :Andrey Hristov2003-09-231-0/+4
| | | | | | | | | | | | | | | | 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).
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Added array_walk_recursive() function that can apply array_walk recursivelyIlia Alshanetsky2003-02-051-0/+1
| | | | | to an array.
* added array_combine().Andrey Hristov2003-01-131-0/+1
| | | | | | | | 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.
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* New function added - array_intersect_assoc() similar to array_intersect()Andrey Hristov2002-09-211-0/+1
| | | | | | | 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.
* New function added : array_diff_assoc() . Like array_diff() but doesAndrey Hristov2002-09-111-0/+1
| | | | | | additional checks on key values. Test script will be added too. #My first patch . it feels strange :)
* Fixed ZTS build.Edin Kadribasic2002-09-101-1/+1
|
* @- Fixed array_merge_recursive() to avoid problems with merging cyclicalAndrei Zmievski2002-09-101-1/+1
| | | | | @ arrays (bug #16064). (Andrei)
* Changing email address.Andrei Zmievski2002-05-131-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* - Renaming key_exists to array_key_existsDerick Rethans2001-11-111-1/+1
| | | | | | | | @- 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.
* @- Added array_chunk() function that splits an array into chunks of specifiedAndrei Zmievski2001-10-271-0/+1
| | | | | @ size. (Andrei)
* As suggested on php-dev, array_fill() is probably a better name for thisRasmus Lerdorf2001-10-231-1/+1
| | | | | function.
* Motivated by bug #13607 I wrote up a simple array_init() function thatRasmus Lerdorf2001-10-211-0/+1
| | | | | | | lets you quickly create an array and initialize each element to a certain value. @ Add array_init() function (Rasmus)
* Added array_change_key_case() function that returns array withEdin Kadribasic2001-10-051-0/+1
| | | | | | | 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)
* Merge in qsort changesSterling Hughes2001-09-171-1/+1
|
* More TSRMLS_FETCH annihilation (Zend compatibility patch)Zeev Suraski2001-07-301-1/+1
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-11/+1
|
* @ - Added key_exists() to check if a given key or index exists in anDavid Croft2001-04-301-0/+1
| | | | | | @ array or object (David Croft) Added key_exists() to check if a given key or index exists in an array or object
* @- Added array_map() function that applies a callback to the elementsAndrei Zmievski2001-03-191-0/+1
| | | | | | @ of given arrays and returns the result. It can also be used with a @ null callback to transpose arrays. (Andrei)
* @- Added array_filter(), which allows filtering of array elements viaAndrei Zmievski2001-03-161-0/+1
| | | | | @ the specified callback. (Andrei)
* @- Added array_reduce(), which allows iterative reduction of an arrayAndrei Zmievski2001-03-121-0/+1
| | | | | | | | @ 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.
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Rename to array_search().Andrei Zmievski2001-02-201-1/+1
|
* Moved the core of in_array into the function php_search_array, which is ↵Jason Greene2001-02-201-0/+1
| | | | | | | | | | 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)
* Make php_array_merge() an API function.Andrei Zmievski2000-12-111-0/+1
|
* Added array_sum() function.Andrei Zmievski2000-10-251-0/+1
|
* Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.David Croft2000-07-241-1/+1
| | | | | | | | | 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.
* @- Improved array_multisort() to be able to specify sort type as well sortAndrei Zmievski2000-07-111-1/+1
| | | | | | @ order. Incidentally, it can be used to sort multi-dimensional arrays @ as well. (Andrei)
* Change header protection macros to conform to standard.Sascha Schumann2000-07-021-3/+3
| | | | | | | | | 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.
* Changed array_subtract to array_diffStig Venaas2000-06-101-1/+1
|
* Adding fuctions array_unique, array_intersect and array_subtract.Stig Venaas2000-06-101-0/+3
|
* @- Added array_merge_recursive() that will recursively merge valuesAndrei Zmievski2000-05-301-0/+1
| | | | | @ under the same keys. (Andrei)
* Update the license with the new clause 6Zeev Suraski2000-05-181-2/+2
|
* Update for sort functions - user can now specify sort type.Andrei Zmievski2000-05-181-1/+2
|
* @- Added array_rand() function. (Andrei)Andrei Zmievski2000-05-091-0/+1
|
* Added natural comparison/sorting routines using code from Martin Pool.Andrei Zmievski2000-04-121-0/+2
| | | | | | | | | @- 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 (Stig)Stig Bakken2000-03-061-26/+14
| | | | | | Cleaned up extension namespace, and changed ext/standard into one single extension.
* Finished array_multisort() function. Basically it sorts multiple arraysAndrei Zmievski1999-12-131-1/+1
| | | | | | | similar to ORDER BY SQL clause. @ Added array_multisort() function. (Andrei) # Docs are coming soon
* Added array globals in preparation for multisort() changes.Andrei Zmievski1999-12-111-1/+23
|
* @Fix warnings compiling in maintainer mode. (Stig)Stig Bakken1999-12-051-0/+2
| | | | | | | 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? :-)
* @- Implemented array_flip() function. Returns input-array with key, valueThies C. Arntzen1999-11-211-0/+1
| | | | | | @ flipped. (Thies) (PHP array_flip) new function. no clash detection, only works for IS_STRING and IS_LONG datatypes in src-array.
* Split array functions into separate module.Andrei Zmievski1999-11-131-0/+81