PHP Class TextAnalysis\Utilities\Text

Author: yooper (yooper)
Afficher le fichier Open project: yooper/php-text-analysis Class Usage Examples

Méthodes publiques

Méthode Description
contains ( $haystack, $needle )
endsWith ( string $haystack, string $needle ) : boolean
findDate ( $string ) : mixed Find Date in a String
getAllSubStrings ( string $text ) : array Takes a string and produces all possible substrings
startsWith ( string $haystack, string $needle ) : boolean http://stackoverflow.com/questions/834303/php-startswith-and-endswith-functions

Méthodes protégées

Méthode Description
__construct ( )

Method Details

__construct() protected méthode

protected __construct ( )

contains() public static méthode

public static contains ( $haystack, $needle )

endsWith() public static méthode

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

findDate() public static méthode

Find Date in a String
Author: Etienne Tremel
public static findDate ( $string ) : mixed
Résultat mixed false if no date found else array: array( 'day' => 01, 'month' => 01, 'year' => 2012 )

getAllSubStrings() public static méthode

Takes a string and produces all possible substrings
public static getAllSubStrings ( string $text ) : array
$text string
Résultat array

startsWith() public static méthode

http://stackoverflow.com/questions/834303/php-startswith-and-endswith-functions
public static startsWith ( string $haystack, string $needle ) : boolean
$haystack string
$needle string
Résultat boolean