Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 444 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 444 Bytes

Access Multiple Array With Dot Notation

Exemple:

use Amsitlab\Component\DotNotation\DotNotation;

$data = array('profile' => array('name' => array('first' => 'Amsit')
                )
             );

$dot = new DotNotation( $data );
$dot->set('profile.name.last','Swara');

echo $dot->get('profile.name.first') , ' ' , $dot->get('profile.name.last'); //Output: Amsit Swara

amsitlab-dotnotation

Php Dot Notation Array Access