php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
array.c File Reference
#include "php.h"
#include "php_ini.h"
#include <stdarg.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include "zend_globals.h"
#include "zend_interfaces.h"
#include "php_array.h"
#include "basic_functions.h"
#include "php_string.h"
#include "php_math.h"
#include "zend_smart_str.h"
#include "zend_bitset.h"
#include "zend_exceptions.h"
#include "ext/random/php_random.h"
#include "zend_frameless_function.h"

Go to the source code of this file.

Data Structures

struct  php_array_walk_context
 
struct  bucketindex
 

Macros

#define DIFF_NORMAL   1
 
#define DIFF_KEY   2
 
#define DIFF_ASSOC   6
 
#define DIFF_COMP_DATA_NONE   -1
 
#define DIFF_COMP_DATA_INTERNAL   0
 
#define DIFF_COMP_DATA_USER   1
 
#define DIFF_COMP_KEY_INTERNAL   0
 
#define DIFF_COMP_KEY_USER   1
 
#define INTERSECT_NORMAL   1
 
#define INTERSECT_KEY   2
 
#define INTERSECT_ASSOC   6
 
#define INTERSECT_COMP_DATA_NONE   -1
 
#define INTERSECT_COMP_DATA_INTERNAL   0
 
#define INTERSECT_COMP_DATA_USER   1
 
#define INTERSECT_COMP_KEY_INTERNAL   0
 
#define INTERSECT_COMP_KEY_USER   1
 
#define RETURN_STABLE_SORT(a, b, result)
 
#define DEFINE_SORT_VARIANTS(name)
 
#define PHP_ARRAY_CMP_FUNC_VARS
 
#define PHP_ARRAY_CMP_FUNC_BACKUP()
 
#define PHP_ARRAY_CMP_FUNC_RESTORE()
 
#define RANGE_CHECK_DOUBLE_INIT_ARRAY(start, end, _step)
 
#define RANGE_CHECK_LONG_INIT_ARRAY(start, end, _step)
 
#define MULTISORT_ORDER   0
 
#define MULTISORT_TYPE   1
 
#define MULTISORT_LAST   2
 
#define MULTISORT_ABORT
 

Functions

 DEFINE_SORT_VARIANTS (key_compare)
 
 DEFINE_SORT_VARIANTS (key_compare_numeric)
 
 DEFINE_SORT_VARIANTS (key_compare_string_case)
 
 DEFINE_SORT_VARIANTS (key_compare_string)
 
 DEFINE_SORT_VARIANTS (key_compare_string_locale)
 
 DEFINE_SORT_VARIANTS (data_compare)
 
 DEFINE_SORT_VARIANTS (data_compare_numeric)
 
 DEFINE_SORT_VARIANTS (data_compare_string_case)
 
 DEFINE_SORT_VARIANTS (data_compare_string)
 
 DEFINE_SORT_VARIANTS (data_compare_string_locale)
 
 DEFINE_SORT_VARIANTS (natural_compare)
 
 DEFINE_SORT_VARIANTS (natural_case_compare)
 
 PHP_FUNCTION (krsort)
 
 PHP_FUNCTION (ksort)
 
PHPAPI zend_long php_count_recursive (HashTable *ht)
 
 PHP_FUNCTION (count)
 
 PHP_FUNCTION (natsort)
 
 PHP_FUNCTION (natcasesort)
 
 PHP_FUNCTION (asort)
 
 PHP_FUNCTION (arsort)
 
 PHP_FUNCTION (sort)
 
 PHP_FUNCTION (rsort)
 
 PHP_FUNCTION (usort)
 
 PHP_FUNCTION (uasort)
 
 PHP_FUNCTION (uksort)
 
 PHP_FUNCTION (end)
 
 PHP_FUNCTION (prev)
 
 PHP_FUNCTION (next)
 
 PHP_FUNCTION (reset)
 
 PHP_FUNCTION (current)
 
 PHP_FUNCTION (key)
 
 PHP_FUNCTION (min)
 
 ZEND_FRAMELESS_FUNCTION (min, 2)
 
 PHP_FUNCTION (max)
 
 ZEND_FRAMELESS_FUNCTION (max, 2)
 
 PHP_FUNCTION (array_walk)
 
 PHP_FUNCTION (array_walk_recursive)
 
 PHP_FUNCTION (in_array)
 
 ZEND_FRAMELESS_FUNCTION (in_array, 2)
 
 ZEND_FRAMELESS_FUNCTION (in_array, 3)
 
 PHP_FUNCTION (array_search)
 
PHPAPI int php_prefix_varname (zval *result, zend_string *prefix, const char *var_name, size_t var_name_len, bool add_underscore)
 
 PHP_FUNCTION (extract)
 
 PHP_FUNCTION (compact)
 
 PHP_FUNCTION (array_fill)
 
 PHP_FUNCTION (array_fill_keys)
 
 PHP_FUNCTION (range)
 
PHPAPI bool php_array_data_shuffle (php_random_algo_with_state engine, zval *array)
 
 PHP_FUNCTION (shuffle)
 
 PHP_FUNCTION (array_push)
 
 PHP_FUNCTION (array_pop)
 
 PHP_FUNCTION (array_shift)
 
 PHP_FUNCTION (array_unshift)
 
 PHP_FUNCTION (array_splice)
 
 PHP_FUNCTION (array_slice)
 
PHPAPI int php_array_merge_recursive (HashTable *dest, HashTable *src)
 
PHPAPI int php_array_merge (HashTable *dest, HashTable *src)
 
PHPAPI int php_array_replace_recursive (HashTable *dest, HashTable *src)
 
 PHP_FUNCTION (array_merge)
 
 PHP_FUNCTION (array_merge_recursive)
 
 PHP_FUNCTION (array_replace)
 
 PHP_FUNCTION (array_replace_recursive)
 
 PHP_FUNCTION (array_keys)
 
 PHP_FUNCTION (array_key_first)
 
 PHP_FUNCTION (array_key_last)
 
 PHP_FUNCTION (array_values)
 
 PHP_FUNCTION (array_count_values)
 
 PHP_FUNCTION (array_column)
 
 PHP_FUNCTION (array_reverse)
 
 PHP_FUNCTION (array_pad)
 
 PHP_FUNCTION (array_flip)
 
 PHP_FUNCTION (array_change_key_case)
 
 PHP_FUNCTION (array_unique)
 
 PHP_FUNCTION (array_intersect_key)
 
 PHP_FUNCTION (array_intersect_ukey)
 
 PHP_FUNCTION (array_intersect)
 
 PHP_FUNCTION (array_uintersect)
 
 PHP_FUNCTION (array_intersect_assoc)
 
 PHP_FUNCTION (array_intersect_uassoc)
 
 PHP_FUNCTION (array_uintersect_assoc)
 
 PHP_FUNCTION (array_uintersect_uassoc)
 
 PHP_FUNCTION (array_diff_key)
 
 PHP_FUNCTION (array_diff_ukey)
 
 PHP_FUNCTION (array_diff)
 
 PHP_FUNCTION (array_udiff)
 
 PHP_FUNCTION (array_diff_assoc)
 
 PHP_FUNCTION (array_diff_uassoc)
 
 PHP_FUNCTION (array_udiff_assoc)
 
 PHP_FUNCTION (array_udiff_uassoc)
 
PHPAPI int php_multisort_compare (const void *a, const void *b)
 
 PHP_FUNCTION (array_multisort)
 
PHPAPI bool php_array_pick_keys (php_random_algo_with_state engine, zval *input, zend_long num_req, zval *retval, bool silent)
 
 PHP_FUNCTION (array_rand)
 
 PHP_FUNCTION (array_sum)
 
 PHP_FUNCTION (array_product)
 
 PHP_FUNCTION (array_reduce)
 
 PHP_FUNCTION (array_filter)
 
 PHP_FUNCTION (array_find)
 
 PHP_FUNCTION (array_find_key)
 
 PHP_FUNCTION (array_any)
 
 PHP_FUNCTION (array_all)
 
 PHP_FUNCTION (array_map)
 
 PHP_FUNCTION (array_key_exists)
 
 PHP_FUNCTION (array_chunk)
 
 PHP_FUNCTION (array_combine)
 

Variables

return SUCCESS
 

Macro Definition Documentation

◆ DEFINE_SORT_VARIANTS

#define DEFINE_SORT_VARIANTS ( name)
Value:
static zend_never_inline int php_array_##name##_unstable(Bucket *a, Bucket *b) { \
return php_array_##name##_unstable_i(a, b); \
} \
static zend_never_inline int php_array_##name(Bucket *a, Bucket *b) { \
RETURN_STABLE_SORT(a, b, php_array_##name##_unstable_i(a, b)); \
} \
static zend_never_inline int php_array_reverse_##name##_unstable(Bucket *a, Bucket *b) { \
return php_array_##name##_unstable(a, b) * -1; \
} \
static zend_never_inline int php_array_reverse_##name(Bucket *a, Bucket *b) { \
RETURN_STABLE_SORT(a, b, php_array_reverse_##name##_unstable(a, b)); \
} \
$obj a
Definition test.php:84
#define zend_never_inline
struct _Bucket Bucket
zend_string * name

Definition at line 108 of file array.c.

◆ DIFF_ASSOC

#define DIFF_ASSOC   6

Definition at line 45 of file array.c.

◆ DIFF_COMP_DATA_INTERNAL

#define DIFF_COMP_DATA_INTERNAL   0

Definition at line 47 of file array.c.

◆ DIFF_COMP_DATA_NONE

#define DIFF_COMP_DATA_NONE   -1

Definition at line 46 of file array.c.

◆ DIFF_COMP_DATA_USER

#define DIFF_COMP_DATA_USER   1

Definition at line 48 of file array.c.

◆ DIFF_COMP_KEY_INTERNAL

#define DIFF_COMP_KEY_INTERNAL   0

Definition at line 49 of file array.c.

◆ DIFF_COMP_KEY_USER

#define DIFF_COMP_KEY_USER   1

Definition at line 50 of file array.c.

◆ DIFF_KEY

#define DIFF_KEY   2

Definition at line 44 of file array.c.

◆ DIFF_NORMAL

#define DIFF_NORMAL   1

Definition at line 43 of file array.c.

◆ INTERSECT_ASSOC

#define INTERSECT_ASSOC   6

Definition at line 54 of file array.c.

◆ INTERSECT_COMP_DATA_INTERNAL

#define INTERSECT_COMP_DATA_INTERNAL   0

Definition at line 56 of file array.c.

◆ INTERSECT_COMP_DATA_NONE

#define INTERSECT_COMP_DATA_NONE   -1

Definition at line 55 of file array.c.

◆ INTERSECT_COMP_DATA_USER

#define INTERSECT_COMP_DATA_USER   1

Definition at line 57 of file array.c.

◆ INTERSECT_COMP_KEY_INTERNAL

#define INTERSECT_COMP_KEY_INTERNAL   0

Definition at line 58 of file array.c.

◆ INTERSECT_COMP_KEY_USER

#define INTERSECT_COMP_KEY_USER   1

Definition at line 59 of file array.c.

◆ INTERSECT_KEY

#define INTERSECT_KEY   2

Definition at line 53 of file array.c.

◆ INTERSECT_NORMAL

#define INTERSECT_NORMAL   1

Definition at line 52 of file array.c.

◆ MULTISORT_ABORT

#define MULTISORT_ABORT
Value:
efree(func); \
efree(arrays); \
return;
#define efree(ptr)
Definition zend_alloc.h:155
execute_data func

Definition at line 5999 of file array.c.

◆ MULTISORT_LAST

#define MULTISORT_LAST   2

Definition at line 5977 of file array.c.

◆ MULTISORT_ORDER

#define MULTISORT_ORDER   0

Definition at line 5975 of file array.c.

◆ MULTISORT_TYPE

#define MULTISORT_TYPE   1

Definition at line 5976 of file array.c.

◆ PHP_ARRAY_CMP_FUNC_BACKUP

#define PHP_ARRAY_CMP_FUNC_BACKUP ( )
Value:
old_user_compare_fci = BG(user_compare_fci); \
old_user_compare_fci_cache = BG(user_compare_fci_cache); \
BG(user_compare_fci_cache) = empty_fcall_info_cache; \
#define BG(v)
bool compare_deprecation_thrown
Definition php_array.h:67
ZEND_API const zend_fcall_info_cache empty_fcall_info_cache

Definition at line 870 of file array.c.

◆ PHP_ARRAY_CMP_FUNC_RESTORE

#define PHP_ARRAY_CMP_FUNC_RESTORE ( )
Value:
BG(user_compare_fci) = old_user_compare_fci; \
BG(user_compare_fci_cache) = old_user_compare_fci_cache; \

Definition at line 876 of file array.c.

◆ PHP_ARRAY_CMP_FUNC_VARS

#define PHP_ARRAY_CMP_FUNC_VARS
Value:
zend_fcall_info old_user_compare_fci; \
zend_fcall_info_cache old_user_compare_fci_cache \
struct _zend_fcall_info_cache zend_fcall_info_cache
struct _zend_fcall_info zend_fcall_info

Definition at line 866 of file array.c.

◆ RANGE_CHECK_DOUBLE_INIT_ARRAY

#define RANGE_CHECK_DOUBLE_INIT_ARRAY ( start,
end,
_step )
Value:
do { \
double __calc_size = ((start - end) / (_step)) + 1; \
if (__calc_size >= (double)HT_MAX_SIZE) { \
zend_value_error(\
"The supplied range exceeds the maximum array size: start=%0.1f end=%0.1f step=%0.1f", end, start, (_step)); \
RETURN_THROWS(); \
} \
size = (uint32_t)_php_math_round(__calc_size, 0, PHP_ROUND_HALF_UP); \
array_init_size(return_value, size); \
zend_hash_real_init_packed(Z_ARRVAL_P(return_value)); \
} while (0)
new_type size
Definition ffi.c:4365
buf start
Definition ffi.c:4687
PHPAPI double _php_math_round(double value, int places, int mode)
Definition math.c:167
unsigned const char * end
Definition php_ffi.h:51
#define PHP_ROUND_HALF_UP
#define Z_ARRVAL_P(zval_p)
Definition zend_types.h:987
zval * return_value

Definition at line 2861 of file array.c.

◆ RANGE_CHECK_LONG_INIT_ARRAY

#define RANGE_CHECK_LONG_INIT_ARRAY ( start,
end,
_step )
Value:
do { \
zend_ulong __calc_size = ((zend_ulong) start - end) / (_step); \
if (__calc_size >= HT_MAX_SIZE - 1) { \
zend_value_error(\
"The supplied range exceeds the maximum array size: start=" ZEND_LONG_FMT " end=" ZEND_LONG_FMT " step=" ZEND_LONG_FMT, end, start, (_step)); \
RETURN_THROWS(); \
} \
size = (uint32_t)(__calc_size + 1); \
array_init_size(return_value, size); \
zend_hash_real_init_packed(Z_ARRVAL_P(return_value)); \
} while (0)
uint32_t zend_ulong
Definition zend_long.h:43
#define ZEND_LONG_FMT
Definition zend_long.h:87

Definition at line 2873 of file array.c.

◆ RETURN_STABLE_SORT

#define RETURN_STABLE_SORT ( a,
b,
result )
Value:
do { \
int _result = (result); \
if (EXPECTED(_result)) { \
return _result; \
} \
return stable_sort_fallback((a), (b)); \
} while (0)
#define EXPECTED(condition)
bool result

Definition at line 99 of file array.c.

Function Documentation

◆ DEFINE_SORT_VARIANTS() [1/12]

DEFINE_SORT_VARIANTS ( data_compare )

◆ DEFINE_SORT_VARIANTS() [2/12]

DEFINE_SORT_VARIANTS ( data_compare_numeric )

◆ DEFINE_SORT_VARIANTS() [3/12]

DEFINE_SORT_VARIANTS ( data_compare_string )

◆ DEFINE_SORT_VARIANTS() [4/12]

DEFINE_SORT_VARIANTS ( data_compare_string_case )

◆ DEFINE_SORT_VARIANTS() [5/12]

DEFINE_SORT_VARIANTS ( data_compare_string_locale )

◆ DEFINE_SORT_VARIANTS() [6/12]

DEFINE_SORT_VARIANTS ( key_compare )

◆ DEFINE_SORT_VARIANTS() [7/12]

DEFINE_SORT_VARIANTS ( key_compare_numeric )

◆ DEFINE_SORT_VARIANTS() [8/12]

DEFINE_SORT_VARIANTS ( key_compare_string )

◆ DEFINE_SORT_VARIANTS() [9/12]

DEFINE_SORT_VARIANTS ( key_compare_string_case )

◆ DEFINE_SORT_VARIANTS() [10/12]

DEFINE_SORT_VARIANTS ( key_compare_string_locale )

◆ DEFINE_SORT_VARIANTS() [11/12]

DEFINE_SORT_VARIANTS ( natural_case_compare )

◆ DEFINE_SORT_VARIANTS() [12/12]

DEFINE_SORT_VARIANTS ( natural_compare )

◆ 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_FUNCTION() [1/81]

PHP_FUNCTION ( array_all )

Definition at line 6740 of file array.c.

◆ PHP_FUNCTION() [2/81]

PHP_FUNCTION ( array_any )

Definition at line 6716 of file array.c.

◆ PHP_FUNCTION() [3/81]

PHP_FUNCTION ( array_change_key_case )

Definition at line 4876 of file array.c.

◆ PHP_FUNCTION() [4/81]

PHP_FUNCTION ( array_chunk )

Definition at line 6984 of file array.c.

◆ PHP_FUNCTION() [5/81]

PHP_FUNCTION ( array_column )

Definition at line 4641 of file array.c.

◆ PHP_FUNCTION() [6/81]

PHP_FUNCTION ( array_combine )

Definition at line 7056 of file array.c.

◆ PHP_FUNCTION() [7/81]

PHP_FUNCTION ( array_count_values )

Definition at line 4555 of file array.c.

◆ PHP_FUNCTION() [8/81]

PHP_FUNCTION ( array_diff )

Definition at line 5817 of file array.c.

◆ PHP_FUNCTION() [9/81]

PHP_FUNCTION ( array_diff_assoc )

Definition at line 5948 of file array.c.

◆ PHP_FUNCTION() [10/81]

PHP_FUNCTION ( array_diff_key )

Definition at line 5803 of file array.c.

◆ PHP_FUNCTION() [11/81]

PHP_FUNCTION ( array_diff_uassoc )

Definition at line 5955 of file array.c.

◆ PHP_FUNCTION() [12/81]

PHP_FUNCTION ( array_diff_ukey )

Definition at line 5810 of file array.c.

◆ PHP_FUNCTION() [13/81]

PHP_FUNCTION ( array_fill )

Definition at line 2769 of file array.c.

◆ PHP_FUNCTION() [14/81]

PHP_FUNCTION ( array_fill_keys )

Definition at line 2834 of file array.c.

◆ PHP_FUNCTION() [15/81]

PHP_FUNCTION ( array_filter )

Definition at line 6508 of file array.c.

◆ PHP_FUNCTION() [16/81]

PHP_FUNCTION ( array_find )

Definition at line 6672 of file array.c.

◆ PHP_FUNCTION() [17/81]

PHP_FUNCTION ( array_find_key )

Definition at line 6694 of file array.c.

◆ PHP_FUNCTION() [18/81]

PHP_FUNCTION ( array_flip )

Definition at line 4840 of file array.c.

◆ PHP_FUNCTION() [19/81]

PHP_FUNCTION ( array_intersect )

Definition at line 5433 of file array.c.

◆ PHP_FUNCTION() [20/81]

PHP_FUNCTION ( array_intersect_assoc )

Definition at line 5447 of file array.c.

◆ PHP_FUNCTION() [21/81]

PHP_FUNCTION ( array_intersect_key )

Definition at line 5419 of file array.c.

◆ PHP_FUNCTION() [22/81]

PHP_FUNCTION ( array_intersect_uassoc )

Definition at line 5454 of file array.c.

◆ PHP_FUNCTION() [23/81]

PHP_FUNCTION ( array_intersect_ukey )

Definition at line 5426 of file array.c.

◆ PHP_FUNCTION() [24/81]

PHP_FUNCTION ( array_key_exists )

Definition at line 6943 of file array.c.

◆ PHP_FUNCTION() [25/81]

PHP_FUNCTION ( array_key_first )

Definition at line 4495 of file array.c.

◆ PHP_FUNCTION() [26/81]

PHP_FUNCTION ( array_key_last )

Definition at line 4510 of file array.c.

◆ PHP_FUNCTION() [27/81]

PHP_FUNCTION ( array_keys )

Definition at line 4412 of file array.c.

◆ PHP_FUNCTION() [28/81]

PHP_FUNCTION ( array_map )

Definition at line 6764 of file array.c.

◆ PHP_FUNCTION() [29/81]

PHP_FUNCTION ( array_merge )

Definition at line 4384 of file array.c.

◆ PHP_FUNCTION() [30/81]

PHP_FUNCTION ( array_merge_recursive )

Definition at line 4391 of file array.c.

◆ PHP_FUNCTION() [31/81]

PHP_FUNCTION ( array_multisort )

Definition at line 6016 of file array.c.

◆ PHP_FUNCTION() [32/81]

PHP_FUNCTION ( array_pad )

Definition at line 4750 of file array.c.

◆ PHP_FUNCTION() [33/81]

PHP_FUNCTION ( array_pop )

Definition at line 3542 of file array.c.

◆ PHP_FUNCTION() [34/81]

PHP_FUNCTION ( array_product )

Definition at line 6442 of file array.c.

◆ PHP_FUNCTION() [35/81]

PHP_FUNCTION ( array_push )

Definition at line 3512 of file array.c.

◆ PHP_FUNCTION() [36/81]

PHP_FUNCTION ( array_rand )

Definition at line 6358 of file array.c.

◆ PHP_FUNCTION() [37/81]

PHP_FUNCTION ( array_reduce )

Definition at line 6449 of file array.c.

◆ PHP_FUNCTION() [38/81]

PHP_FUNCTION ( array_replace )

Definition at line 4398 of file array.c.

◆ PHP_FUNCTION() [39/81]

PHP_FUNCTION ( array_replace_recursive )

Definition at line 4405 of file array.c.

◆ PHP_FUNCTION() [40/81]

PHP_FUNCTION ( array_reverse )

Definition at line 4704 of file array.c.

◆ PHP_FUNCTION() [41/81]

PHP_FUNCTION ( array_search )

Definition at line 1774 of file array.c.

◆ PHP_FUNCTION() [42/81]

PHP_FUNCTION ( array_shift )

Definition at line 3613 of file array.c.

◆ PHP_FUNCTION() [43/81]

PHP_FUNCTION ( array_slice )

Definition at line 3902 of file array.c.

◆ PHP_FUNCTION() [44/81]

PHP_FUNCTION ( array_splice )

Definition at line 3786 of file array.c.

◆ PHP_FUNCTION() [45/81]

PHP_FUNCTION ( array_sum )

Definition at line 6435 of file array.c.

◆ PHP_FUNCTION() [46/81]

PHP_FUNCTION ( array_udiff )

Definition at line 5941 of file array.c.

◆ PHP_FUNCTION() [47/81]

PHP_FUNCTION ( array_udiff_assoc )

Definition at line 5962 of file array.c.

◆ PHP_FUNCTION() [48/81]

PHP_FUNCTION ( array_udiff_uassoc )

Definition at line 5969 of file array.c.

◆ PHP_FUNCTION() [49/81]

PHP_FUNCTION ( array_uintersect )

Definition at line 5440 of file array.c.

◆ PHP_FUNCTION() [50/81]

PHP_FUNCTION ( array_uintersect_assoc )

Definition at line 5461 of file array.c.

◆ PHP_FUNCTION() [51/81]

PHP_FUNCTION ( array_uintersect_uassoc )

Definition at line 5468 of file array.c.

◆ PHP_FUNCTION() [52/81]

PHP_FUNCTION ( array_unique )

Definition at line 4926 of file array.c.

◆ PHP_FUNCTION() [53/81]

PHP_FUNCTION ( array_unshift )

Definition at line 3731 of file array.c.

◆ PHP_FUNCTION() [54/81]

PHP_FUNCTION ( array_values )

Definition at line 4526 of file array.c.

◆ PHP_FUNCTION() [55/81]

PHP_FUNCTION ( array_walk )

Definition at line 1591 of file array.c.

◆ PHP_FUNCTION() [56/81]

PHP_FUNCTION ( array_walk_recursive )

Definition at line 1610 of file array.c.

◆ PHP_FUNCTION() [57/81]

PHP_FUNCTION ( arsort )

Definition at line 748 of file array.c.

◆ PHP_FUNCTION() [58/81]

PHP_FUNCTION ( asort )

Definition at line 727 of file array.c.

◆ PHP_FUNCTION() [59/81]

PHP_FUNCTION ( compact )

Definition at line 2736 of file array.c.

◆ PHP_FUNCTION() [60/81]

PHP_FUNCTION ( count )

Definition at line 636 of file array.c.

◆ PHP_FUNCTION() [61/81]

PHP_FUNCTION ( current )

Definition at line 1156 of file array.c.

◆ PHP_FUNCTION() [62/81]

PHP_FUNCTION ( end )

Definition at line 1068 of file array.c.

◆ PHP_FUNCTION() [63/81]

PHP_FUNCTION ( extract )

Definition at line 2591 of file array.c.

◆ PHP_FUNCTION() [64/81]

PHP_FUNCTION ( in_array )

Definition at line 1741 of file array.c.

◆ PHP_FUNCTION() [65/81]

PHP_FUNCTION ( key )

Definition at line 1170 of file array.c.

◆ PHP_FUNCTION() [66/81]

PHP_FUNCTION ( krsort )

Definition at line 568 of file array.c.

◆ PHP_FUNCTION() [67/81]

PHP_FUNCTION ( ksort )

Definition at line 589 of file array.c.

◆ PHP_FUNCTION() [68/81]

PHP_FUNCTION ( max )

Definition at line 1324 of file array.c.

◆ PHP_FUNCTION() [69/81]

PHP_FUNCTION ( min )

Definition at line 1196 of file array.c.

◆ PHP_FUNCTION() [70/81]

PHP_FUNCTION ( natcasesort )

Definition at line 720 of file array.c.

◆ PHP_FUNCTION() [71/81]

PHP_FUNCTION ( natsort )

Definition at line 713 of file array.c.

◆ PHP_FUNCTION() [72/81]

PHP_FUNCTION ( next )

Definition at line 1112 of file array.c.

◆ PHP_FUNCTION() [73/81]

PHP_FUNCTION ( prev )

Definition at line 1090 of file array.c.

◆ PHP_FUNCTION() [74/81]

PHP_FUNCTION ( range )

Definition at line 2958 of file array.c.

◆ PHP_FUNCTION() [75/81]

PHP_FUNCTION ( reset )

Definition at line 1134 of file array.c.

◆ PHP_FUNCTION() [76/81]

PHP_FUNCTION ( rsort )

Definition at line 790 of file array.c.

◆ PHP_FUNCTION() [77/81]

PHP_FUNCTION ( shuffle )

Definition at line 3306 of file array.c.

◆ PHP_FUNCTION() [78/81]

PHP_FUNCTION ( sort )

Definition at line 769 of file array.c.

◆ PHP_FUNCTION() [79/81]

PHP_FUNCTION ( uasort )

Definition at line 922 of file array.c.

◆ PHP_FUNCTION() [80/81]

PHP_FUNCTION ( uksort )

Definition at line 1002 of file array.c.

◆ PHP_FUNCTION() [81/81]

PHP_FUNCTION ( usort )

Definition at line 915 of file array.c.

◆ php_multisort_compare()

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

Definition at line 5979 of file array.c.

◆ php_prefix_varname()

PHPAPI int php_prefix_varname ( zval * result,
zend_string * prefix,
const char * var_name,
size_t var_name_len,
bool add_underscore )

Definition at line 1837 of file array.c.

◆ ZEND_FRAMELESS_FUNCTION() [1/4]

ZEND_FRAMELESS_FUNCTION ( in_array ,
2  )

Definition at line 1747 of file array.c.

◆ ZEND_FRAMELESS_FUNCTION() [2/4]

ZEND_FRAMELESS_FUNCTION ( in_array ,
3  )

Definition at line 1759 of file array.c.

◆ ZEND_FRAMELESS_FUNCTION() [3/4]

ZEND_FRAMELESS_FUNCTION ( max ,
2  )

Definition at line 1409 of file array.c.

◆ ZEND_FRAMELESS_FUNCTION() [4/4]

ZEND_FRAMELESS_FUNCTION ( min ,
2  )

Definition at line 1281 of file array.c.

Variable Documentation

◆ SUCCESS

return SUCCESS
Initial value:
{
ZEND_INIT_MODULE_GLOBALS(array, php_array_init_globals, NULL)
#define NULL
Definition gdcache.h:45
#define ZEND_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor)
Definition zend_API.h:272

Definition at line 75 of file array.c.