PHP Class Gaufrette\Util\Size

Author: Antoine Hérault ([email protected])
Datei anzeigen Open project: knplabs/gaufrette Class Usage Examples

Public Methods

Method Description
fromContent ( string $content ) : integer Returns the size in bytes from the given content.
fromFile ( string $filename ) : string Returns the size in bytes from the given file.
fromResource ( resource $handle ) : string Returns the size in bytes from the given resource.

Method Details

fromContent() public static method

Returns the size in bytes from the given content.
public static fromContent ( string $content ) : integer
$content string
return integer

fromFile() public static method

Returns the size in bytes from the given file.
public static fromFile ( string $filename ) : string
$filename string
return string

fromResource() public static method

Returns the size in bytes from the given resource.
public static fromResource ( resource $handle ) : string
$handle resource
return string