Merge remote-tracking branch 'origin/master'
Conflicts: readme.md
This commit is contained in:
@ -12,7 +12,7 @@ $ary = new Ary();
|
|||||||
// or simply
|
// or simply
|
||||||
$ary = ary();
|
$ary = ary();
|
||||||
|
|
||||||
// filling ary
|
//setting and getting array items.
|
||||||
|
|
||||||
$ary = ary(2, 4, 6, 8); //or
|
$ary = ary(2, 4, 6, 8); //or
|
||||||
$ary = ary([2, 4, 6, 8]); //or
|
$ary = ary([2, 4, 6, 8]); //or
|
||||||
@ -23,5 +23,8 @@ $foo = $ary['foo'];
|
|||||||
|
|
||||||
$missed = $ary->get('missed', 'Default value');
|
$missed = $ary->get('missed', 'Default value');
|
||||||
|
|
||||||
|
$ary->newItem=20; //or
|
||||||
|
$ary['newItem']=20;
|
||||||
|
|
||||||
count($ary); //returns 3
|
count($ary); //returns 3
|
||||||
$ary->all(); // returns simple php array;
|
$ary->all(); // returns simple php array;
|
Reference in New Issue
Block a user