arabcoders/dot-notation

This package is abandoned and no longer maintained. The author suggests using the adbario/php-dot-notation package instead.

Array Dot Notation

v1.0.0 2016-07-01 18:44 UTC

This package is auto-updated.

Last update: 2022-02-01 12:59:32 UTC


README

Array Dot Notation

Install

Via Composer

$ composer require arabcoders/dot-notation

Usage Example.

<?php

require __DIR__ . '/../../autoload.php';

$list = [
    'one' => [
        'two' => 'foo'
    ]
];

$dot = new \arabcoders\DotNotation\DotNotation( $list );

var_dump( $dot->get('one.two') === $list['one']['two'] );

echo $dot->get('one.two');