JHtmlNumber::bytes
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JHtmlNumber::bytes[edit]
Description[edit]
Converts bytes to more distinguishable formats such as: kilobytes, megabytes, etc.
public static function bytes (
$bytes
$unit= 'auto'
$precision=2
)
Parameter | Type | Default | Description |
---|---|---|---|
$bytes | |||
$unit | 'auto' | ||
$precision | 2 |
- Returns
- Defined on line 36 of libraries/joomla/html/html/number.php
See also[edit]
JHtmlNumber::bytes source code on BitBucket
Class JHtmlNumber
Subpackage Html
- Other versions of JHtmlNumber::bytes
User contributed notes[edit]
Code Examples[edit]