PHP 클래스 UTF

상속: extends Prefab
파일 보기 프로젝트 열기: bcosca/fatfree-core 1 사용 예제들

공개 메소드들

메소드 설명
bom ( ) : string Return UTF-8 byte order mark
emojify ( $str ) : string Translate emoji tokens to Unicode font-supported symbols
ltrim ( $str ) : string Strip whitespaces from the beginning of a string
rtrim ( $str ) : string Strip whitespaces from the end of a string
stripos ( $stack, $needle, $ofs ) : integer | FALSE Find position of first occurrence of a string (case-insensitive)
stristr ( $stack, $needle, $before = FALSE ) : string | FALSE Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
strlen ( $str ) : integer Get string length
strpos ( $stack, $needle, $ofs, $case = FALSE ) : integer | FALSE Find position of first occurrence of a string
strrev ( $str ) : string Reverse a string
strstr ( $stack, $needle, $before = FALSE, $case = FALSE ) : string | FALSE Returns part of haystack string from the first occurrence of needle to the end of haystack
substr ( $str, $start, $len ) : string | FALSE Return part of a string
substr_count ( $stack, $needle ) : integer Count the number of substring occurrences
translate ( $str ) : string Convert code points to Unicode symbols
trim ( $str ) : string Strip whitespaces from the beginning and end of a string

메소드 상세

bom() 공개 메소드

Return UTF-8 byte order mark
public bom ( ) : string
리턴 string

emojify() 공개 메소드

Translate emoji tokens to Unicode font-supported symbols
public emojify ( $str ) : string
$str string
리턴 string

ltrim() 공개 메소드

Strip whitespaces from the beginning of a string
public ltrim ( $str ) : string
$str string
리턴 string

rtrim() 공개 메소드

Strip whitespaces from the end of a string
public rtrim ( $str ) : string
$str string
리턴 string

stripos() 공개 메소드

Find position of first occurrence of a string (case-insensitive)
public stripos ( $stack, $needle, $ofs ) : integer | FALSE
$stack string
$needle string
$ofs int
리턴 integer | FALSE

stristr() 공개 메소드

Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
public stristr ( $stack, $needle, $before = FALSE ) : string | FALSE
$stack string
$needle string
$before bool
리턴 string | FALSE

strlen() 공개 메소드

Get string length
public strlen ( $str ) : integer
$str string
리턴 integer

strpos() 공개 메소드

Find position of first occurrence of a string
public strpos ( $stack, $needle, $ofs, $case = FALSE ) : integer | FALSE
$stack string
$needle string
$ofs int
$case bool
리턴 integer | FALSE

strrev() 공개 메소드

Reverse a string
public strrev ( $str ) : string
$str string
리턴 string

strstr() 공개 메소드

Returns part of haystack string from the first occurrence of needle to the end of haystack
public strstr ( $stack, $needle, $before = FALSE, $case = FALSE ) : string | FALSE
$stack string
$needle string
$before bool
$case bool
리턴 string | FALSE

substr() 공개 메소드

Return part of a string
public substr ( $str, $start, $len ) : string | FALSE
$str string
$start int
$len int
리턴 string | FALSE

substr_count() 공개 메소드

Count the number of substring occurrences
public substr_count ( $stack, $needle ) : integer
$stack string
$needle string
리턴 integer

translate() 공개 메소드

Convert code points to Unicode symbols
public translate ( $str ) : string
$str string
리턴 string

trim() 공개 메소드

Strip whitespaces from the beginning and end of a string
public trim ( $str ) : string
$str string
리턴 string