메소드 |
설명 |
|
__construct ( array | string $data = [] ) |
Class constructor |
|
__toString ( ) : string |
Magic method to convert the data to a string
Returns a serialized version of the data contained in
the data object using serialize() |
|
find ( string $key, mixed $default = null, mixed $filter = null, string $separator = '.' ) : mixed |
Find a key in the data recursively
This method finds the given key, searching also in any array or
object that's nested under the current data object. |
|
flattenRecursive ( ) : array |
Return flattened array copy. Keys are NOT preserved. |
|
get ( string $key, mixed $default = null, mixed $filter = null ) : mixed |
Get a value from the data given its key |
|
has ( string $name ) : boolean |
Checks if the given key is present |
|
is ( string $key, mixed $compareWith = true, boolean $strictMode = false ) : boolean |
Compare value by key with somethig |
|
offsetGet ( $index ) |
|
|
remove ( string $name ) |
Remove a value from the data |
|
search ( mixed $needle ) : string | false |
Find a value also in nested arrays/objects |
|
set ( string $name, mixed $value ) |
Set a value in the data |
|
write ( ) : string |
Encode an array or an object in INI format |
|