php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ArrayObject Class Reference
Inheritance diagram for ArrayObject:
IteratorAggregate ArrayAccess Serializable Countable Traversable

Public Member Functions

 __construct (array|object $array=[], int $flags=0, string $iteratorClass=ArrayIterator::class)
 
 offsetExists (mixed $key)
 
 offsetGet (mixed $key)
 
 offsetSet (mixed $key, mixed $value)
 
 offsetUnset (mixed $key)
 
 append (mixed $value)
 
 getArrayCopy ()
 
 count ()
 
 getFlags ()
 
 setFlags (int $flags)
 
 asort (int $flags=SORT_REGULAR)
 
 ksort (int $flags=SORT_REGULAR)
 
 uasort (callable $callback)
 
 uksort (callable $callback)
 
 natsort ()
 
 natcasesort ()
 
 unserialize (string $data)
 
 serialize ()
 
 __serialize ()
 
 __unserialize (array $data)
 
 getIterator ()
 
 exchangeArray (array|object $array)
 
 setIteratorClass (string $iteratorClass)
 
 getIteratorClass ()
 
 __debugInfo ()
 

Data Fields

const int STD_PROP_LIST = UNKNOWN
 
const int ARRAY_AS_PROPS = UNKNOWN
 

Detailed Description

@generate-class-entries

Definition at line 5 of file spl_array.stub.php.

Constructor & Destructor Documentation

◆ __construct()

ArrayObject::__construct ( array|object $array = [],
int $flags = 0,
string $iteratorClass = ArrayIterator::class )

Definition at line 12 of file spl_array.stub.php.

Member Function Documentation

◆ __debugInfo()

ArrayObject::__debugInfo ( )

@tentative-return-type

Definition at line 84 of file spl_array.stub.php.

◆ __serialize()

ArrayObject::__serialize ( )

@tentative-return-type

Definition at line 66 of file spl_array.stub.php.

◆ __unserialize()

ArrayObject::__unserialize ( array $data)

@tentative-return-type

Definition at line 69 of file spl_array.stub.php.

◆ append()

ArrayObject::append ( mixed $value)

@tentative-return-type

Definition at line 27 of file spl_array.stub.php.

◆ asort()

ArrayObject::asort ( int $flags = SORT_REGULAR)

@tentative-return-type

Definition at line 42 of file spl_array.stub.php.

◆ count()

ArrayObject::count ( )

@tentative-return-type

Implements Countable.

Definition at line 33 of file spl_array.stub.php.

◆ exchangeArray()

ArrayObject::exchangeArray ( array|object $array)

@tentative-return-type

Definition at line 75 of file spl_array.stub.php.

◆ getArrayCopy()

ArrayObject::getArrayCopy ( )

@tentative-return-type

Definition at line 30 of file spl_array.stub.php.

◆ getFlags()

ArrayObject::getFlags ( )

@tentative-return-type

Definition at line 36 of file spl_array.stub.php.

◆ getIterator()

ArrayObject::getIterator ( )

@tentative-return-type

Implements IteratorAggregate.

Definition at line 72 of file spl_array.stub.php.

◆ getIteratorClass()

ArrayObject::getIteratorClass ( )

@tentative-return-type

Definition at line 81 of file spl_array.stub.php.

◆ ksort()

ArrayObject::ksort ( int $flags = SORT_REGULAR)

@tentative-return-type

Definition at line 45 of file spl_array.stub.php.

◆ natcasesort()

ArrayObject::natcasesort ( )

@tentative-return-type

Definition at line 57 of file spl_array.stub.php.

◆ natsort()

ArrayObject::natsort ( )

@tentative-return-type

Definition at line 54 of file spl_array.stub.php.

◆ offsetExists()

ArrayObject::offsetExists ( mixed $key)

@tentative-return-type

Implements ArrayAccess.

Definition at line 15 of file spl_array.stub.php.

◆ offsetGet()

ArrayObject::offsetGet ( mixed $key)

@tentative-return-type

Implements ArrayAccess.

Definition at line 18 of file spl_array.stub.php.

◆ offsetSet()

ArrayObject::offsetSet ( mixed $key,
mixed $value )

@tentative-return-type

Implements ArrayAccess.

Definition at line 21 of file spl_array.stub.php.

◆ offsetUnset()

ArrayObject::offsetUnset ( mixed $key)

@tentative-return-type

Implements ArrayAccess.

Definition at line 24 of file spl_array.stub.php.

◆ serialize()

ArrayObject::serialize ( )

@tentative-return-type

Implements Serializable.

Definition at line 63 of file spl_array.stub.php.

◆ setFlags()

ArrayObject::setFlags ( int $flags)

@tentative-return-type

Definition at line 39 of file spl_array.stub.php.

◆ setIteratorClass()

ArrayObject::setIteratorClass ( string $iteratorClass)

@tentative-return-type

Definition at line 78 of file spl_array.stub.php.

◆ uasort()

ArrayObject::uasort ( callable $callback)

@tentative-return-type

Definition at line 48 of file spl_array.stub.php.

◆ uksort()

ArrayObject::uksort ( callable $callback)

@tentative-return-type

Definition at line 51 of file spl_array.stub.php.

◆ unserialize()

ArrayObject::unserialize ( string $data)

@tentative-return-type

Implements Serializable.

Definition at line 60 of file spl_array.stub.php.

Field Documentation

◆ ARRAY_AS_PROPS

const int ArrayObject::ARRAY_AS_PROPS = UNKNOWN

@cvalue SPL_ARRAY_ARRAY_AS_PROPS

Definition at line 10 of file spl_array.stub.php.

◆ STD_PROP_LIST

const int ArrayObject::STD_PROP_LIST = UNKNOWN

@cvalue SPL_ARRAY_STD_PROP_LIST

Definition at line 8 of file spl_array.stub.php.


The documentation for this class was generated from the following file: