Actions

API17

JHtmlNumber::bytes

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.

Joomla 11.1 JHtmlNumber::bytes

Description

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


User contributed notes

Code Examples


Advertisement