making deep set/get possible using dot notation

This commit is contained in:
Reza
2015-11-13 08:13:11 +03:30
parent 210041f1b2
commit 1722b8ba30
3 changed files with 38 additions and 3 deletions

View File

@ -33,6 +33,11 @@ $ary['newItem']=20;
count($ary); //returns 3
$ary->all(); // returns simple php array;
// deep assignment/retrieval
$ary = ary(['products' => ['desk' => ['price' => 100]]]);
$value = $ary['products.desk.price']; //100
$ary['production.table.weight']=200;
~~~~~~