Function __global->clean_file_size
Definitions
sources/files.php
- Format the specified filesize.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $bytes | mixed | No | No | required parameter | N/A | N/A | The number of bytes the file has (integer or float) |
Returns
- The formatted-string file size
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Format the specified filesize.
*
* @param mixed $bytes The number of bytes the file has (integer or float)
* @return string The formatted-string file size
*/
function clean_file_size($bytes) : string
* Format the specified filesize.
*
* @param mixed $bytes The number of bytes the file has (integer or float)
* @return string The formatted-string file size
*/
function clean_file_size($bytes) : string

