At
class At extends Mutator (View source)
Get element at the specified index. If the index does not exist, the default value is returned.
If the default value is a callable, it will be invoked with the array and the index as arguments.
Methods
__construct(string|int $index, mixed $default = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.
Details
__construct(string|int $index, mixed $default = null)
No description
static At
make(string|int $index, mixed $default = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.