library arraydot
Functions to handle multidimensional arrays and dots.
mirkoschmidt/arraydot
Functions to handle multidimensional arrays and dots.
- Thursday, April 19, 2018
- by mirkoschmidt
- Repository
- 1 Watchers
- 0 Stars
- 178 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 249 % Grown
arraydot
Helper functions to deal with array dotting, (*1)
Installation
composer require mirkoschmidt/arraydot --no-dev
Examples
$array = [
'config' =>
'group' => [
'setting' => 'value',
'setting2' => 'value2',
],
],
];
$array = array_dot($array);
// Elements can now be accessed using dot notation, like the example below.
// Echos: 'value';
echo $array['config.group.setting'];
// To return the array back to the original, the following
// line can be used.
$array = array_undot($array);
// Echos 'value2'
echo $array['config']['group']['setting2'];
dev-master
9999999-dev
Functions to handle multidimensional arrays and dots.
Sources
Download
GPL-3.0
The Development Requires
by
Michael Benner
by
Mirko Schmidt
v1.0.3
1.0.3.0
Functions to handle multidimensional arrays and dots.
Sources
Download
GPL-3.0
The Development Requires
by
Michael Benner
by
Mirko Schmidt
v1.0.2
1.0.2.0
Functions to handle multidimensional arrays and dots.
Sources
Download
GPL-3.0
The Development Requires
by
Michael Benner
by
Mirko Schmidt
v1.0.1
1.0.1.0
Functions to handle multidimensional arrays and dots.
Sources
Download
GPL-3.0
The Development Requires
by
Michael Benner
by
Mirko Schmidt
v1.0.0
1.0.0.0
Functions to handle multidimensional arrays and dots.
Sources
Download
GPL-3.0
The Development Requires
by
Michael Benner