PHP Class ManaPHP\Utility\Text

Afficher le fichier Open project: manaphp/manaphp Class Usage Examples

Méthodes publiques

Méthode Description
camelize ( string $str ) : string
contains ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
endsWith ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
startsWith ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
underscore ( string $str ) : string

Method Details

camelize() public static méthode

public static camelize ( string $str ) : string
$str string
Résultat string

contains() public static méthode

public static contains ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
$haystack string
$needle string
$ignoreCase boolean
Résultat boolean

endsWith() public static méthode

public static endsWith ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
$haystack string
$needle string
$ignoreCase boolean
Résultat boolean

startsWith() public static méthode

public static startsWith ( string $haystack, string $needle, boolean $ignoreCase = false ) : boolean
$haystack string
$needle string
$ignoreCase boolean
Résultat boolean

underscore() public static méthode

public static underscore ( string $str ) : string
$str string
Résultat string