ArrayHelper
FinalYes
Table of Contents
Methods
- getByPath() : array<string|int, mixed>|ArrayAccess|mixed|null
- Returns value, that belongs to path.
Methods
getByPath()
Returns value, that belongs to path.
public
static getByPath(array<string|int, mixed>|ArrayAccess $array, string $path[, null $defaultValue = null ]) : array<string|int, mixed>|ArrayAccess|mixed|null
Parameters
- $array : array<string|int, mixed>|ArrayAccess
-
Target array.
- $path : string
-
Path. Example CONDITIONS.CHILDREN.0.DATA.Value
- $defaultValue : null = null
-
Default value