PHP Класс TextAnalysis\Utilities\Text

Автор: yooper (yooper)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
__construct ( )

Описание методов

__construct() защищенный Метод

protected __construct ( )

contains() публичный статический Метод

public static contains ( $haystack, $needle )

endsWith() публичный статический Метод

public static endsWith ( string $haystack, string $needle ) : boolean
$haystack string
$needle string
Результат boolean

findDate() публичный статический Метод

Find Date in a String
Автор: Etienne Tremel
public static findDate ( $string ) : mixed
Результат mixed false if no date found else array: array( 'day' => 01, 'month' => 01, 'year' => 2012 )

getAllSubStrings() публичный статический Метод

Takes a string and produces all possible substrings
public static getAllSubStrings ( string $text ) : array
$text string
Результат array

startsWith() публичный статический Метод

http://stackoverflow.com/questions/834303/php-startswith-and-endswith-functions
public static startsWith ( string $haystack, string $needle ) : boolean
$haystack string
$needle string
Результат boolean