php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_array.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Andi Gutmans <andi@php.net> |
14 | Zeev Suraski <zeev@php.net> |
15 | Rasmus Lerdorf <rasmus@php.net> |
16 | Andrei Zmievski <andrei@php.net> |
17 +----------------------------------------------------------------------+
18*/
19
20#ifndef PHP_ARRAY_H
21#define PHP_ARRAY_H
22
24
27
31PHPAPI int php_multisort_compare(const void *a, const void *b);
33
35PHPAPI bool php_array_pick_keys(php_random_algo_with_state engine, zval *input, zend_long num_req, zval *retval, bool silent);
36
37#define PHP_EXTR_OVERWRITE 0
38#define PHP_EXTR_SKIP 1
39#define PHP_EXTR_PREFIX_SAME 2
40#define PHP_EXTR_PREFIX_ALL 3
41#define PHP_EXTR_PREFIX_INVALID 4
42#define PHP_EXTR_PREFIX_IF_EXISTS 5
43#define PHP_EXTR_IF_EXISTS 6
44
45#define PHP_EXTR_REFS 0x100
46
47#define PHP_CASE_LOWER 0
48#define PHP_CASE_UPPER 1
49
50#define PHP_SORT_REGULAR 0
51#define PHP_SORT_NUMERIC 1
52#define PHP_SORT_STRING 2
53#define PHP_SORT_DESC 3
54#define PHP_SORT_ASC 4
55#define PHP_SORT_LOCALE_STRING 5
56#define PHP_SORT_NATURAL 6
57#define PHP_SORT_FLAG_CASE 8
58
59#define PHP_COUNT_NORMAL 0
60#define PHP_COUNT_RECURSIVE 1
61
62#define ARRAY_FILTER_USE_BOTH 1
63#define ARRAY_FILTER_USE_KEY 2
64
69
70#define ARRAYG(v) ZEND_MODULE_GLOBALS_ACCESSOR(array, v)
71
72#endif /* PHP_ARRAY_H */
HashTable * ht
Definition ffi.c:4838
#define PHP_MSHUTDOWN_FUNCTION
Definition php.h:401
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHPAPI
Definition php.h:71
PHPAPI int php_multisort_compare(const void *a, const void *b)
Definition array.c:5979
bucket_compare_func_t * multisort_func
Definition php_array.h:66
PHPAPI zend_long php_count_recursive(HashTable *ht)
Definition array.c:609
PHPAPI bool php_array_data_shuffle(php_random_algo_with_state engine, zval *array)
Definition array.c:3212
PHPAPI int php_array_merge(HashTable *dest, HashTable *src)
Definition array.c:4106
PHPAPI int php_array_replace_recursive(HashTable *dest, HashTable *src)
Definition array.c:4141
PHPAPI bool php_array_pick_keys(php_random_algo_with_state engine, zval *input, zend_long num_req, zval *retval, bool silent)
Definition array.c:6208
bool compare_deprecation_thrown
Definition php_array.h:67
PHPAPI int php_array_merge_recursive(HashTable *dest, HashTable *src)
Definition array.c:4029
struct _php_random_algo_with_state php_random_algo_with_state
$obj a
Definition test.php:84
#define ZEND_END_MODULE_GLOBALS(module_name)
Definition zend_API.h:248
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
Definition zend_API.h:246
struct _zval_struct zval
int(* bucket_compare_func_t)(Bucket *a, Bucket *b)
Definition zend_hash.h:299
int32_t zend_long
Definition zend_long.h:42
struct _zend_array HashTable
Definition zend_types.h:386
zval retval