2015-01-03 09:22:58 +00:00
|
|
|
/*
|
1999-11-13 20:31:54 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 09:00:23 +00:00
|
|
|
| Copyright (c) The PHP Group |
|
1999-11-13 20:31:54 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2000-03-06 20:37:11 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2000-03-06 20:37:11 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-11-13 20:31:54 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2018-11-01 16:30:28 +00:00
|
|
|
| Authors: Andi Gutmans <andi@php.net> |
|
|
|
|
| Zeev Suraski <zeev@php.net> |
|
2000-03-06 20:37:11 +00:00
|
|
|
| Rasmus Lerdorf <rasmus@php.net> |
|
2002-05-13 17:28:38 +00:00
|
|
|
| Andrei Zmievski <andrei@php.net> |
|
1999-11-13 20:31:54 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-11-13 20:31:54 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef PHP_ARRAY_H
|
|
|
|
#define PHP_ARRAY_H
|
1999-11-13 20:31:54 +00:00
|
|
|
|
|
|
|
PHP_MINIT_FUNCTION(array);
|
1999-12-11 22:42:01 +00:00
|
|
|
PHP_MSHUTDOWN_FUNCTION(array);
|
1999-11-13 20:31:54 +00:00
|
|
|
|
2014-12-13 22:06:14 +00:00
|
|
|
PHPAPI int php_array_merge(HashTable *dest, HashTable *src);
|
|
|
|
PHPAPI int php_array_merge_recursive(HashTable *dest, HashTable *src);
|
|
|
|
PHPAPI int php_array_replace_recursive(HashTable *dest, HashTable *src);
|
|
|
|
PHPAPI int php_multisort_compare(const void *a, const void *b);
|
2017-10-05 22:34:50 +00:00
|
|
|
PHPAPI zend_long php_count_recursive(HashTable *ht);
|
2007-11-02 19:40:39 +00:00
|
|
|
|
|
|
|
#define PHP_SORT_REGULAR 0
|
|
|
|
#define PHP_SORT_NUMERIC 1
|
|
|
|
#define PHP_SORT_STRING 2
|
|
|
|
#define PHP_SORT_DESC 3
|
|
|
|
#define PHP_SORT_ASC 4
|
|
|
|
#define PHP_SORT_LOCALE_STRING 5
|
2011-08-29 20:23:34 +00:00
|
|
|
#define PHP_SORT_NATURAL 6
|
|
|
|
#define PHP_SORT_FLAG_CASE 8
|
1999-11-13 20:31:54 +00:00
|
|
|
|
2014-04-13 22:08:36 +00:00
|
|
|
#define COUNT_NORMAL 0
|
|
|
|
#define COUNT_RECURSIVE 1
|
|
|
|
|
2013-09-26 03:10:24 +00:00
|
|
|
#define ARRAY_FILTER_USE_BOTH 1
|
|
|
|
#define ARRAY_FILTER_USE_KEY 2
|
|
|
|
|
2015-01-03 09:22:58 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(array)
|
2020-03-04 11:35:49 +00:00
|
|
|
bucket_compare_func_t *multisort_func;
|
2015-01-03 09:22:58 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(array)
|
2006-02-07 17:54:24 +00:00
|
|
|
|
2015-07-29 10:26:23 +00:00
|
|
|
#define ARRAYG(v) ZEND_MODULE_GLOBALS_ACCESSOR(array, v)
|
2006-02-07 17:54:24 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* PHP_ARRAY_H */
|