Merge remote-tracking branch 'origin/master'

Conflicts:
	readme.md
This commit is contained in:
Reza
2015-10-01 08:35:39 +03:30
2 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,9 @@ Are you tired from casting objects and array to each other? Ary is a light class
2. You will get `null` if an index does not exists.
3. You can specify a default value for a missing index.
* The class (`Ary()`) requires PHP 5.4 or newer.
* The helper function (`ary()`) requires PHP 5.6 or newer.
~~~~~
// instantiation
$ary = new Ary();
@ -27,4 +30,4 @@ $ary->newItem=20; //or
$ary['newItem']=20;
count($ary); //returns 3
$ary->all(); // returns simple php array;
$ary->all(); // returns simple php array;