Свойство | Тип | Описание | |
---|---|---|---|
$default | mixed | callable |
Метод | Описание | |
---|---|---|
__construct ( mixed | callable $default, array $data = [] ) | If you pass a function as default value it will be called without arguments to provide a default value for the given key, this value will be inserted in the array for the key, and returned. | |
__toString ( ) : string | ||
fromArray ( mixed $default, array $array ) : static | ||
offsetGet ( integer $index ) : mixed |
(PHP 5 >= 5.0.0) Offset to retrieve |
Метод | Описание | |
---|---|---|
getDefault ( ) |