PHP Class LdapTools\Utilities\MBString

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$collator null | Collator

Méthodes publiques

Méthode Description
array_change_key_case ( array $values ) : array Change the keys in an array to their lower-case values.
array_change_value_case ( array $values ) : array Change the values in an array to lower-case values.
array_search_get_value ( string $needle, array $haystack ) : string Given an array value determine if it exists in the array and return the value as it is in the array.
chr ( $int ) : string Get the character for a specific integer value.
compare ( string $value1, string $value2 ) : integer Performs a comparison between two values and returns an integer result, like strnatcmp.
ord ( $string ) : integer Get the integer value of a specific character.
str_split ( string $value ) : string[] Split a string into its individual characters and return it as an array.
strtolower ( string $value ) : string Make a string lower case.

Méthodes protégées

Méthode Description
getCollator ( ) : Collator Load and return a collator instance.
isIntlLoaded ( ) : boolean Simple check for the intl extension.
isMbstringLoaded ( ) : boolean Simple check for the mbstring extension.

Method Details

array_change_key_case() public static méthode

Change the keys in an array to their lower-case values.
public static array_change_key_case ( array $values ) : array
$values array
Résultat array

array_change_value_case() public static méthode

Change the values in an array to lower-case values.
public static array_change_value_case ( array $values ) : array
$values array
Résultat array

array_search_get_value() public static méthode

Given an array value determine if it exists in the array and return the value as it is in the array.
public static array_search_get_value ( string $needle, array $haystack ) : string
$needle string
$haystack array
Résultat string

chr() public static méthode

Get the character for a specific integer value.
public static chr ( $int ) : string
$int
Résultat string

compare() public static méthode

Performs a comparison between two values and returns an integer result, like strnatcmp.
public static compare ( string $value1, string $value2 ) : integer
$value1 string
$value2 string
Résultat integer

getCollator() protected static méthode

Load and return a collator instance.
protected static getCollator ( ) : Collator
Résultat Collator

isIntlLoaded() protected static méthode

Simple check for the intl extension.
protected static isIntlLoaded ( ) : boolean
Résultat boolean

isMbstringLoaded() protected static méthode

Simple check for the mbstring extension.
protected static isMbstringLoaded ( ) : boolean
Résultat boolean

ord() public static méthode

Get the integer value of a specific character.
public static ord ( $string ) : integer
$string
Résultat integer

str_split() public static méthode

Split a string into its individual characters and return it as an array.
public static str_split ( string $value ) : string[]
$value string
Résultat string[]

strtolower() public static méthode

Make a string lower case.
public static strtolower ( string $value ) : string
$value string
Résultat string

Property Details

$collator protected_oe static_oe property

protected static null|Collator $collator
Résultat null | Collator