mprzytulski/arrow-path

There is no license information available for the latest version (v0.4) of this package.

v0.4 2018-03-25 13:24 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:32:04 UTC


README

Simple access array with -> notation.

Examples

Basic example

$arrow = new Arrow(['something' => 1]);
echo $arror->something; 

Output:

1

Use naive mode

$arrow = new Arrow(['something' => 1], true);
echo $arror->something->otherthing; 

Output:

''

Get original value

$arrow = new Arrow(['something' => 1], true);
var_dump($arror->something()); 

Output:

int(1)