PHP 클래스 TextAnalysis\Utilities\Text

저자: yooper (yooper)
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

공개 메소드들

메소드 설명
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