dev-master
9999999-devUtility for traversing arrays using a dot notation
The Development Requires
by Russ P
1.0
1.0.0.0Utility for traversing arrays using a dot notation
The Development Requires
by Russ P
Wallogit.com
2017 © Pedro Peláez
Utility for traversing arrays using a dot notation
Simple utility for extracting keys from an array using a dot notation., (*1)
<?php
$value = DotArray\Extract::keyFromArray('a.b.c', ['a' => ['b'=> ['c' => 'hello world']]]);
echo $value; // 'hello world';
The API is minimal. If any part of the nested keys are missing or can't be traversed, the function
will return null with no errors., (*2)
This package is setup as a composer package for easy inclusion in your projects., (*3)
To contributor, please add additional tests. To run the test suite, just install all the dependencies using
composer and then run:, (*4)
$ composer run-script test
Utility for traversing arrays using a dot notation
Utility for traversing arrays using a dot notation