\DtApp\ThinkLibrary\facadeStrings

字符串门面

Summary

Methods
Properties
Constants
extractBefore()
extractRear()
filter()
exitContain()
len()
trimAll()
replace()
No public properties found
No constants found
getFacadeClass()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

extractBefore()

extractBefore(string  $str, integer  $start_num, integer  $end_num) : string

截取字符串前面n个字符

Parameters

string $str
integer $start_num
integer $end_num

Returns

string

extractRear()

extractRear(string  $str, integer  $num) : string

截取字符串最后n个字符

Parameters

string $str
integer $num

Returns

string

filter()

filter(string  $str) : string

过滤字符串

Parameters

string $str

Returns

string

exitContain()

exitContain(string  $str, mixed  $nee = 3, mixed  $del = ', mixed  $') : boolean

bool 判断字符串是否包含某个字符

Parameters

string $str
mixed $nee
mixed $del
mixed $'

Returns

boolean

len()

len(string  $str) : integer

int 统计字符串长度

Parameters

string $str

Returns

integer

trimAll()

trimAll(string  $str) : string

删除空格

Parameters

string $str

Returns

string

replace()

replace(string  $search, string  $replace, string  $subject) : string

替换字符串

Parameters

string $search
string $replace
string $subject

Returns

string

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名(或者已经绑定的容器对象标识)

Returns

string