colorium/arraydot

Traversable array with dot notation

Installs: 71

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/colorium/arraydot

v0.2 2016-01-05 07:44 UTC

This package is not auto-updated.

Last update: 2025-10-07 23:43:36 UTC


README

Using an instance :

use Colorium\Tools\ArrayDot;

$array = new ArrayDot([
    'foo' => [
        'bar' => 'baz'
    ]
]);

echo $array['foo.bar']; // 'baz'

Using static methods :

use Colorium\Tools\ArrayDot;

$array = [
    'foo' => [
        'bar' => 'baz'
    ]
]

echo ArrayDot::get($array, 'foo.bar'); // 'baz'

Install

composer require colorium/arraydot