Browse Source

Simple example in readme

Timothy J. Warren 5 years ago
parent
commit
bece6896d1
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      README.md

+ 8
- 0
README.md View File

@@ -2,3 +2,11 @@
2 2
 
3 3
 A simple wrapper around inconsistent php functions
4 4
 
5
+Array Example:
6
+
7
+    $sorted_array = arr($array)->sort();
8
+    
9
+String Example:
10
+
11
+    $modified_string = str("string")->replace("str", "fl"); // Returns "fling"
12
+