php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_array.h File Reference

Go to the source code of this file.

Macros

#define PHP_EXTR_OVERWRITE   0
 
#define PHP_EXTR_SKIP   1
 
#define PHP_EXTR_PREFIX_SAME   2
 
#define PHP_EXTR_PREFIX_ALL   3
 
#define PHP_EXTR_PREFIX_INVALID   4
 
#define PHP_EXTR_PREFIX_IF_EXISTS   5
 
#define PHP_EXTR_IF_EXISTS   6
 
#define PHP_EXTR_REFS   0x100
 
#define PHP_CASE_LOWER   0
 
#define PHP_CASE_UPPER   1
 
#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
 
#define PHP_SORT_NATURAL   6
 
#define PHP_SORT_FLAG_CASE   8
 
#define PHP_COUNT_NORMAL   0
 
#define PHP_COUNT_RECURSIVE   1
 
#define ARRAY_FILTER_USE_BOTH   1
 
#define ARRAY_FILTER_USE_KEY   2
 
#define ARRAYG(v)
 

Functions

 PHP_MINIT_FUNCTION (array)
 
 PHP_MSHUTDOWN_FUNCTION (array)
 
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)
 
PHPAPI zend_long php_count_recursive (HashTable *ht)
 
PHPAPI bool php_array_data_shuffle (php_random_algo_with_state engine, zval *array)
 
PHPAPI bool php_array_pick_keys (php_random_algo_with_state engine, zval *input, zend_long num_req, zval *retval, bool silent)
 

Variables

bucket_compare_func_tmultisort_func
 
bool compare_deprecation_thrown
 

Macro Definition Documentation

◆ ARRAY_FILTER_USE_BOTH

#define ARRAY_FILTER_USE_BOTH   1

Definition at line 62 of file php_array.h.

◆ ARRAY_FILTER_USE_KEY

#define ARRAY_FILTER_USE_KEY   2

Definition at line 63 of file php_array.h.

◆ ARRAYG

#define ARRAYG ( v)
Value:
uint32_t v
Definition cdf.c:1237
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
Definition zend_API.h:274

Definition at line 70 of file php_array.h.

◆ PHP_CASE_LOWER

#define PHP_CASE_LOWER   0

Definition at line 47 of file php_array.h.

◆ PHP_CASE_UPPER

#define PHP_CASE_UPPER   1

Definition at line 48 of file php_array.h.

◆ PHP_COUNT_NORMAL

#define PHP_COUNT_NORMAL   0

Definition at line 59 of file php_array.h.

◆ PHP_COUNT_RECURSIVE

#define PHP_COUNT_RECURSIVE   1

Definition at line 60 of file php_array.h.

◆ PHP_EXTR_IF_EXISTS

#define PHP_EXTR_IF_EXISTS   6

Definition at line 43 of file php_array.h.

◆ PHP_EXTR_OVERWRITE

#define PHP_EXTR_OVERWRITE   0

Definition at line 37 of file php_array.h.

◆ PHP_EXTR_PREFIX_ALL

#define PHP_EXTR_PREFIX_ALL   3

Definition at line 40 of file php_array.h.

◆ PHP_EXTR_PREFIX_IF_EXISTS

#define PHP_EXTR_PREFIX_IF_EXISTS   5

Definition at line 42 of file php_array.h.

◆ PHP_EXTR_PREFIX_INVALID

#define PHP_EXTR_PREFIX_INVALID   4

Definition at line 41 of file php_array.h.

◆ PHP_EXTR_PREFIX_SAME

#define PHP_EXTR_PREFIX_SAME   2

Definition at line 39 of file php_array.h.

◆ PHP_EXTR_REFS

#define PHP_EXTR_REFS   0x100

Definition at line 45 of file php_array.h.

◆ PHP_EXTR_SKIP

#define PHP_EXTR_SKIP   1

Definition at line 38 of file php_array.h.

◆ PHP_SORT_ASC

#define PHP_SORT_ASC   4

Definition at line 54 of file php_array.h.

◆ PHP_SORT_DESC

#define PHP_SORT_DESC   3

Definition at line 53 of file php_array.h.

◆ PHP_SORT_FLAG_CASE

#define PHP_SORT_FLAG_CASE   8

Definition at line 57 of file php_array.h.

◆ PHP_SORT_LOCALE_STRING

#define PHP_SORT_LOCALE_STRING   5

Definition at line 55 of file php_array.h.

◆ PHP_SORT_NATURAL

#define PHP_SORT_NATURAL   6

Definition at line 56 of file php_array.h.

◆ PHP_SORT_NUMERIC

#define PHP_SORT_NUMERIC   1

Definition at line 51 of file php_array.h.

◆ PHP_SORT_REGULAR

#define PHP_SORT_REGULAR   0

Definition at line 50 of file php_array.h.

◆ PHP_SORT_STRING

#define PHP_SORT_STRING   2

Definition at line 52 of file php_array.h.

Function Documentation

◆ php_array_data_shuffle()

PHPAPI bool php_array_data_shuffle ( php_random_algo_with_state engine,
zval * array )

Definition at line 3212 of file array.c.

◆ php_array_merge()

PHPAPI int php_array_merge ( HashTable * dest,
HashTable * src )

Definition at line 4106 of file array.c.

◆ php_array_merge_recursive()

PHPAPI int php_array_merge_recursive ( HashTable * dest,
HashTable * src )

Definition at line 4029 of file array.c.

◆ php_array_pick_keys()

PHPAPI bool php_array_pick_keys ( php_random_algo_with_state engine,
zval * input,
zend_long num_req,
zval * retval,
bool silent )

Definition at line 6208 of file array.c.

◆ php_array_replace_recursive()

PHPAPI int php_array_replace_recursive ( HashTable * dest,
HashTable * src )

Definition at line 4141 of file array.c.

◆ php_count_recursive()

PHPAPI zend_long php_count_recursive ( HashTable * ht)

Definition at line 609 of file array.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( array )

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( array )

◆ php_multisort_compare()

PHPAPI int php_multisort_compare ( const void * a,
const void * b )

Definition at line 5979 of file array.c.

Variable Documentation

◆ compare_deprecation_thrown

bool compare_deprecation_thrown

Definition at line 67 of file php_array.h.

◆ multisort_func

bucket_compare_func_t* multisort_func

Definition at line 66 of file php_array.h.