1
1
# Arrayzy
2
2
3
- A native PHP library for manipulating arrays in an OOP way .
3
+ The wrapper for all PHP built-in array functions and easy, object-oriented array manipulation library. In short: Arrays on steroids .
4
4
5
5
[ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/e0235f5d-a89b-4add-b3c6-45813d2bf9eb/mini.png )] ( https://insight.sensiolabs.com/projects/e0235f5d-a89b-4add-b3c6-45813d2bf9eb )
6
6
[ ![ Build Status] ( https://travis-ci.org/bocharsky-bw/Arrayzy.svg?branch=master )] ( https://travis-ci.org/bocharsky-bw/Arrayzy )
@@ -19,7 +19,7 @@ Each method operates on the same array and returns the array itself
19
19
` create ` prefix. This way has slightly better performance and is more
20
20
convenient to use in an OOP way.
21
21
22
- > ** NOTE:** Check the [ CreateClone] ( #createclone ) section if you want to operate on a new instance INSTEAD of the instance itself .
22
+ > ** NOTE:** Check the [ CreateClone] ( #createclone ) section if you want to operate on a new instance to preserve the current one .
23
23
24
24
## ImmutableArray
25
25
@@ -156,7 +156,7 @@ $a = new ImmutabelArray([1, 2, 3]);
156
156
```
157
157
158
158
Also, new objects can be created with one of the public static methods
159
- prefixed with 'create'.
159
+ prefixed with 'create':
160
160
161
161
* [ create] ( #create )
162
162
* [ createFromJson] ( #createfromjson )
@@ -166,7 +166,7 @@ prefixed with 'create'.
166
166
167
167
## Usage
168
168
169
- You can get access to the values like with the familiar PHP array indexing :
169
+ You can get access to the values like with the familiar PHP array syntax :
170
170
171
171
``` php
172
172
use Arrayzy\MutableArray as A;
@@ -186,7 +186,7 @@ print $a->offsetGet(1); // 'b'
186
186
187
187
### Chaining
188
188
189
- * NOTE: The following methods and principles apply to ImmutableArray and MutableArray alike*
189
+ * NOTE: The following methods and principles apply to ` ImmutableArray ` and ` MutableArray ` alike. *
190
190
191
191
Methods may be chained for ease of use:
192
192
@@ -207,7 +207,7 @@ $a->toArray(); // [0 => 'c', 1 => 'a', 2 => 'e', 3 => 'd', 4 => 'b']
207
207
### Converting
208
208
209
209
Easily convert instance array elements to a simple PHP ` array ` , ` string ` ,
210
- ` readable string ` or JSON format:
210
+ readable ` string ` or JSON format:
211
211
212
212
* [ toArray] ( #toarray )
213
213
* [ toJson] ( #tojson )
@@ -715,7 +715,7 @@ $a->toArray(); // [0 => 'a', 1 => 'b', 2 => 'c']
715
715
716
716
### toJson
717
717
718
- Creates JSON string from the array:
718
+ Creates a JSON string from the array:
719
719
720
720
``` php
721
721
$a = MutableArray::create(['a' => 1, 'b' => 2, 'c' => 3]);
0 commit comments