◆ __construct()
__construct |
( |
|
$input = [] , |
|
|
|
$flags = self::STD_PROP_LIST , |
|
|
|
$iteratorClass = 'ArrayIterator' |
|
) |
| |
Constructor
- Parameters
-
array | $input | |
int | $flags | |
string | $iteratorClass | |
◆ __get()
Returns the value at the specified key
- Parameters
-
- Returns
- mixed
◆ __isset()
Returns whether the requested key exists
- Parameters
-
- Returns
- bool
◆ __serialize()
Called when serializing an ArrayObject
◆ __set()
Sets the value at the specified key to value
- Parameters
-
- Returns
- void
◆ __unserialize()
__unserialize |
( |
array |
$data | ) |
|
Called when unserializing an ArrayObject
◆ __unset()
Unsets the value at the specified key
- Parameters
-
- Returns
- void
◆ append()
Appends the value
- Parameters
-
- Returns
- void
◆ asort()
Sort the entries by value
- Returns
- void
◆ contains()
Returns whether the given value is in the underlying array.
◆ count()
Get the number of public properties in the ArrayObject
◆ exchangeArray()
Exchange the array for another one.
- Parameters
-
- Returns
- array
◆ getArrayCopy()
Creates a copy of the ArrayObject.
- Returns
- array
◆ getFlags()
Gets the behavior flags.
- Returns
- int
◆ getIterator()
Create a new iterator from an ArrayObject instance
◆ getIteratorClass()
Gets the iterator classname for the ArrayObject.
- Returns
- string
◆ ksort()
Sort the entries by key
- Returns
- void
◆ natcasesort()
Sort an array using a case insensitive "natural order" algorithm
- Returns
- void
◆ natsort()
Sort entries using a "natural order" algorithm
- Returns
- void
◆ offsetExists()
Returns whether the requested key exists
- Parameters
-
◆ offsetGet()
Returns the value at the specified key
- Parameters
-
◆ offsetSet()
offsetSet |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Sets the value at the specified key to value
- Parameters
-
◆ offsetUnset()
Unsets the value at the specified key
- Parameters
-
◆ setFlags()
Sets the behavior flags
- Parameters
-
- Returns
- void
◆ setIteratorClass()
setIteratorClass |
( |
|
$class | ) |
|
Sets the iterator classname for the ArrayObject
- Parameters
-
- Returns
- void
◆ uasort()
Sort the entries with a user-defined comparison function and maintain key association
- Parameters
-
- Returns
- void
◆ uksort()
Sort the entries by keys using a user-defined comparison function
- Parameters
-
- Returns
- void
◆ validateKeyUsage()
Validates whether the given key is a protected property.
- Parameters
-
string | $key | The key to validate |
- Exceptions
-
InvalidArgumentException | when key is invalid |
◆ $flag
◆ $iteratorClass
◆ $protectedProperties
◆ $storage
◆ ARRAY_AS_PROPS
Entries can be accessed as properties (read and write).
◆ STD_PROP_LIST
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).
The documentation for this class was generated from the following file: