__construct |
( |
|
$input = [] , |
|
|
|
$flags = self::STD_PROP_LIST , |
|
|
|
$iteratorClass = 'ArrayIterator' |
|
) |
| |
Constructor
- Parameters
-
array | $input | |
int | $flags | |
string | $iteratorClass | |
Returns the value at the specified key
- Parameters
-
- Returns
- mixed
Returns whether the requested key exists
- Parameters
-
- Returns
- bool
Sets the value at the specified key to value
- Parameters
-
- Returns
- void
Unsets the value at the specified key
- Parameters
-
- Returns
- void
Appends the value
- Parameters
-
- Returns
- void
Sort the entries by value
- Returns
- void
Returns whether the given value is in the underlying array.
Get the number of public properties in the ArrayObject
- Returns
- int
Exchange the array for another one.
- Parameters
-
- Returns
- array
Creates a copy of the ArrayObject.
- Returns
- array
Gets the behavior flags.
- Returns
- int
Create a new iterator from an ArrayObject instance
- Returns
Gets the iterator classname for the ArrayObject.
- Returns
- string
Sort the entries by key
- Returns
- void
Sort an array using a case insensitive "natural order" algorithm
- Returns
- void
Sort entries using a "natural order" algorithm
- Returns
- void
Returns whether the requested key exists
- Parameters
-
- Returns
- bool
Returns the value at the specified key
- Parameters
-
- Returns
- mixed
offsetSet |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Sets the value at the specified key to value
- Parameters
-
- Returns
- void
Unsets the value at the specified key
- Parameters
-
- Returns
- void
Serialize an ArrayObject
- Returns
- string
Sets the behavior flags
- Parameters
-
- Returns
- void
setIteratorClass |
( |
|
$class | ) |
|
Sets the iterator classname for the ArrayObject
- Parameters
-
- Returns
- void
Sort the entries with a user-defined comparison function and maintain key association
- Parameters
-
- Returns
- void
Sort the entries by keys using a user-defined comparison function
- Parameters
-
- Returns
- void
Unserialize an ArrayObject
- Parameters
-
- Returns
- void
Validates whether the given key is a protected property.
- Parameters
-
string | $key | The key to validate |
- Exceptions
-
InvalidArgumentException | when key is invalid |
Entries can be accessed as properties (read and write).
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: