Documentation

FormatterInterface

Formatter interface

Tags
author

Ryan Chouinard rchouinard@gmail.com

copyright

Copyright (c) 2013, Ryan Chouinard

license

MIT License - http://www.opensource.org/licenses/mit-license.php

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.


        
On this page

Search results