class PropertyAccessor (View source)

Methods

static mixed
getValue(string $path, array|object $items, mixed $alternative = null)

Read array or object by path using dot

Details

static mixed getValue(string $path, array|object $items, mixed $alternative = null)

Read array or object by path using dot

Parameters

string $path
array|object $items
mixed $alternative

Return Value

mixed