SafeGetter

Namespace

IO\Helper

Methods
public static get($object, $path):mixed

Get a nested property of an object/array.

Parameters

Type

Name

Description

mixed

$object

The object / array to get the property from

string

$path

The path of the property (e.g. "path.to.property"). To query list entries you can pass paths like "list.{id, 5}.name". This will query the first list entry having the id '5'