Skip to content

Commit

Permalink
IHF: format_bytes doc added.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Jun 25, 2016
1 parent 668b0eb commit 4a439e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Provides Laravel-specific and pure PHP helper functions.
- [Dump](#dump)
- [get_dump](#get_dump)
- [Format](#format)
- [format_bytes](#format_bytes)
- [Json](#json)
- [is_json](#is_json)
Expand Down Expand Up @@ -55,6 +58,17 @@ $dump = get_dump($var);
// ]
```

## Format

#### `format_bytes()`

Formats bytes into kilobytes, megabytes, gigabytes or terabytes, with specified precision:
```php
$formatted = format_bytes(3333333);
// 3.18 MB
```

## Json

#### `is_json()`
Expand Down

0 comments on commit 4a439e8

Please sign in to comment.