PHP Класс Gaufrette\Util\Size

Автор: Antoine Hérault ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

fromContent() публичный статический Метод

Returns the size in bytes from the given content.
public static fromContent ( string $content ) : integer
$content string
Результат integer

fromFile() публичный статический Метод

Returns the size in bytes from the given file.
public static fromFile ( string $filename ) : string
$filename string
Результат string

fromResource() публичный статический Метод

Returns the size in bytes from the given resource.
public static fromResource ( resource $handle ) : string
$handle resource
Результат string