arr_get
Retrieves a value from an array using a path.
Example
1
{{ $a | arr_get: "b.c" }} => value
Input
Type | Parameter | Description | Required |
---|---|---|---|
array | input | The array to retrieve the value from. Comes before the | sign. | Required |
string | path | The path to the value | |
mixed | default | The default value to return if the path is not found |
Output
Type | Description |
---|---|
mixed | The value from the array |