PHP Class Uploader\Helpers\Format

Author: Stanislav WEB | Lugansk ([email protected])
Afficher le fichier Open project: stanislav-web/phalcon-uploader Class Usage Examples

Méthodes publiques

Méthode Description
bytes ( integer $bytes, integer $precision = 2 ) : string Format byte code to human understand
toLatin ( string $string, string $separator = '', boolean $clean = false ) : string Transliterate cyrillic to latin

Method Details

bytes() public static méthode

Format byte code to human understand
public static bytes ( integer $bytes, integer $precision = 2 ) : string
$bytes integer number of bytes
$precision integer after comma numbers
Résultat string

toLatin() public static méthode

Transliterate cyrillic to latin
public static toLatin ( string $string, string $separator = '', boolean $clean = false ) : string
$string string original string
$separator string word separator
$clean boolean to lower & all non understand symbols remove
Résultat string