Skip to content

Commit a8e565a

Browse files
committed
Update README
1 parent 35befa3 commit a8e565a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Use `as()` to export the size in another format.
3131
echo $size->as('MB'); // 512000
3232
```
3333

34+
A variety of file size strings are supported here as well.
35+
36+
```php
37+
echo $size->as('megabytes'); // 512000
38+
```
39+
3440
The second argument specifies decimal precision (default is 2).
3541

3642
```php
@@ -63,7 +69,7 @@ echo $size; // '1.15 TB'
6369

6470
### Modify the size
6571

66-
To make changes, use `add()`, `subtract()`, `multiplyBy()`, and `divideBy()`. A variety of file size strings are supported here as well.
72+
To make changes, use `add()`, `subtract()`, `multiplyBy()`, and `divideBy()`.
6773

6874
```php
6975
$size = new FileSize('4 GB');

0 commit comments

Comments
 (0)