You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ $size->add('2G')
60
60
echo $size->asAuto(); // '10.00 GB'
61
61
```
62
62
63
+
You may also use `add()` and `subtract()` with an array of values:
64
+
65
+
```
66
+
$size->add(['50mb', '140mb', '1.2mb']);
67
+
```
68
+
63
69
### Number base
64
70
65
71
The second argument of the constructor is the number base, which accepts either `2` (binary) or `10` (decimal). We use binary by default. To handle sizes in decimal:
0 commit comments