FormatterInterface
in
Formatter interface
Tags
Table of Contents
Methods
- format() : string
- Format input into a human-friendly string for display.
Methods
format()
Format input into a human-friendly string for display.
public
format(int|string $bytes, int $precision) : string
Parameters
- $bytes : int|string
-
Integer or string representing the number of bytes.
- $precision : int
-
Number of significant digits to include in the formatted output.
Return values
string —Returns a human-friendly formatted string.