php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
spl_array.h File Reference
#include "php.h"

Go to the source code of this file.

Macros

#define SPL_ARRAY_STD_PROP_LIST   0x00000001
 
#define SPL_ARRAY_ARRAY_AS_PROPS   0x00000002
 
#define SPL_ARRAY_CHILD_ARRAYS_ONLY   0x00000004
 
#define SPL_ARRAY_IS_SELF   0x01000000
 
#define SPL_ARRAY_USE_OTHER   0x02000000
 
#define SPL_ARRAY_INT_MASK   0xFFFF0000
 
#define SPL_ARRAY_CLONE_MASK   0x0100FFFF
 
#define SPL_ARRAY_METHOD_NO_ARG   0
 
#define SPL_ARRAY_METHOD_CALLBACK_ARG   1
 
#define SPL_ARRAY_METHOD_SORT_FLAGS_ARG   2
 

Functions

 PHP_MINIT_FUNCTION (spl_array)
 
void spl_array_iterator_append (zval *object, zval *append_value)
 
void spl_array_iterator_key (zval *object, zval *return_value)
 

Variables

PHPAPI zend_class_entryspl_ce_ArrayObject
 
PHPAPI zend_class_entryspl_ce_ArrayIterator
 
PHPAPI zend_class_entryspl_ce_RecursiveArrayIterator
 

Macro Definition Documentation

◆ SPL_ARRAY_ARRAY_AS_PROPS

#define SPL_ARRAY_ARRAY_AS_PROPS   0x00000002

Definition at line 23 of file spl_array.h.

◆ SPL_ARRAY_CHILD_ARRAYS_ONLY

#define SPL_ARRAY_CHILD_ARRAYS_ONLY   0x00000004

Definition at line 24 of file spl_array.h.

◆ SPL_ARRAY_CLONE_MASK

#define SPL_ARRAY_CLONE_MASK   0x0100FFFF

Definition at line 28 of file spl_array.h.

◆ SPL_ARRAY_INT_MASK

#define SPL_ARRAY_INT_MASK   0xFFFF0000

Definition at line 27 of file spl_array.h.

◆ SPL_ARRAY_IS_SELF

#define SPL_ARRAY_IS_SELF   0x01000000

Definition at line 25 of file spl_array.h.

◆ SPL_ARRAY_METHOD_CALLBACK_ARG

#define SPL_ARRAY_METHOD_CALLBACK_ARG   1

Definition at line 31 of file spl_array.h.

◆ SPL_ARRAY_METHOD_NO_ARG

#define SPL_ARRAY_METHOD_NO_ARG   0

Definition at line 30 of file spl_array.h.

◆ SPL_ARRAY_METHOD_SORT_FLAGS_ARG

#define SPL_ARRAY_METHOD_SORT_FLAGS_ARG   2

Definition at line 32 of file spl_array.h.

◆ SPL_ARRAY_STD_PROP_LIST

#define SPL_ARRAY_STD_PROP_LIST   0x00000001

Definition at line 22 of file spl_array.h.

◆ SPL_ARRAY_USE_OTHER

#define SPL_ARRAY_USE_OTHER   0x02000000

Definition at line 26 of file spl_array.h.

Function Documentation

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( spl_array )

Definition at line 1905 of file spl_array.c.

◆ spl_array_iterator_append()

void spl_array_iterator_append ( zval * object,
zval * append_value )
extern

Definition at line 716 of file spl_array.c.

◆ spl_array_iterator_key()

void spl_array_iterator_key ( zval * object,
zval * return_value )
extern

Definition at line 1779 of file spl_array.c.

Variable Documentation

◆ spl_ce_ArrayIterator

PHPAPI zend_class_entry* spl_ce_ArrayIterator
extern

Definition at line 34 of file spl_array.c.

◆ spl_ce_ArrayObject

PHPAPI zend_class_entry* spl_ce_ArrayObject
extern

Definition at line 39 of file spl_array.c.

◆ spl_ce_RecursiveArrayIterator

PHPAPI zend_class_entry* spl_ce_RecursiveArrayIterator
extern

Definition at line 35 of file spl_array.c.