Accepts the number of bytes and returns the formatted string with the value in bytes for printing.
Syntax
|
Parameters
bytes
An integer value that specifies the number of bytes.
addB
A boolean value that is true if the 'bytes' word should be added to the resulting string, false otherwise. The default setting is false.
precision
A string value that specifies precision of the value to show. It is set to -1 by default (only the integer part of the value should be shown).
Returns
A string value that holds the passed in number of bytes in a special format.
Code Example
|
Remarks
The above code snippet shows the results of three invocations of this function, each time with different parameters.
Include: pm.php.