PHP Class Punic\Comparer

Afficher le fichier Open project: punic/punic

Méthodes publiques

Méthode Description
__construct ( string $locale = null, boolean $caseSensitive = false ) Initializes the instance.
compare ( string $a, string $b ) : integer Compare two strings.
sort ( array &$array, boolean $keepKeys = false ) : array

Private Methods

Méthode Description
normalize ( string $str ) : string

Method Details

__construct() public méthode

Initializes the instance.
public __construct ( string $locale = null, boolean $caseSensitive = false )
$locale string
$caseSensitive boolean

compare() public méthode

Compare two strings.
public compare ( string $a, string $b ) : integer
$a string
$b string
Résultat integer

sort() public méthode

public sort ( array &$array, boolean $keepKeys = false ) : array
$array array
$keepKeys boolean
Résultat array