Skip to content

Commit

Permalink
Add System::numberOfBytes documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelana committed Aug 2, 2016
1 parent ecd7faf commit daacf0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ echo ByteUnits\bytes(1322123)->format('GB/9'); // outputs 0.001322123GB
// You can specify a separator between then number and the units
echo ByteUnits\bytes(1322000)->format('MB', ' '); // outputs 1.32 MB
echo ByteUnits\bytes(1322000)->format('MB', '/'); // outputs 1.32/MB

// If you don't want to format but get the number of bytes
// NOTE: The output is a string to ensure that there's no overflow
echo ByteUnits\bytes(1322000)->numberOfBytes(); // outputs 1322000
```

### Compare
Expand Down

0 comments on commit daacf0e

Please sign in to comment.