PHP 클래스 lithium\g11n\multibyte\adapter\Mbstring

No known limitations affecting used functionality. Silently strips out badly formed UTF-8 sequences.
상속: extends lithium\core\Object
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

공개 메소드들

메소드 설명
enabled ( ) : boolean Determines if this adapter is enabled by checking if the mbstring extension is loaded.
strlen ( string $string ) : integer Here used as a multibyte enabled equivalent of strlen().
strpos ( string $haystack, string $needle, integer $offset ) : integer | boolean Here used as a multibyte enabled equivalent of strpos().
strrpos ( string $haystack, string $needle ) : integer | boolean Here used as a multibyte enabled equivalent of strrpos().
substr ( string $string, integer $start, integer $length ) : string | boolean Here used as a multibyte enabled equivalent of substr().

메소드 상세

enabled() 공개 정적인 메소드

Determines if this adapter is enabled by checking if the mbstring extension is loaded.
public static enabled ( ) : boolean
리턴 boolean Returns `true` if enabled, otherwise `false`.

strlen() 공개 메소드

Here used as a multibyte enabled equivalent of strlen().
public strlen ( string $string ) : integer
$string string
리턴 integer

strpos() 공개 메소드

Here used as a multibyte enabled equivalent of strpos().
public strpos ( string $haystack, string $needle, integer $offset ) : integer | boolean
$haystack string
$needle string
$offset integer
리턴 integer | boolean

strrpos() 공개 메소드

Here used as a multibyte enabled equivalent of strrpos().
public strrpos ( string $haystack, string $needle ) : integer | boolean
$haystack string
$needle string
리턴 integer | boolean

substr() 공개 메소드

Here used as a multibyte enabled equivalent of substr().
public substr ( string $string, integer $start, integer $length ) : string | boolean
$string string
$start integer
$length integer
리턴 string | boolean