2017 © Pedro Peláez
 

library dotarray

Utility for traversing arrays using a dot notation

image

russpos/dotarray

Utility for traversing arrays using a dot notation

  • Sunday, March 12, 2017
  • by russpos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DotArray

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)

Installing.

This package is setup as a composer package for easy inclusion in your projects., (*3)

Contributing.

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

The Versions

12/03 2017

dev-master

9999999-dev

Utility for traversing arrays using a dot notation

  Sources   Download

The Development Requires

by Russ P

12/03 2017

1.0

1.0.0.0

Utility for traversing arrays using a dot notation

  Sources   Download

The Development Requires

by Russ P