Bitrix API

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

Tags
throws
ArgumentException
Return values
array<string|int, mixed>|ArrayAccess|mixed|null

        
On this page

Search results