Util/Format.php

Show: inherited
Table of Contents

\Conjoon_Util_Format

Package: Conjoon\Util\Util

Utility methods for convinient access to convert/formatting methods.

Author
Thorsten Suckow-Homberg  
Category
Util  

Methods

methodprivate__construct( ) : void

Enforce static behavior.

methodpublicconvertToBytes( mixed $value ) : int
static

Converts a (kilo/mega/giga)byte value to an integer value, representing the value in bytes.

If no valid quantifier (k, m, g) was found, the passed argument will be casted to int and returned.

Parameters
Name Type Description
$value mixed
Returns
Type Description
int
Documentation was generated by DocBlox 0.18.1.