Skip to content

colorium/arraydot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Traversable array using dot notation

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

About

Traversable array using dot notation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages