str_cut

str_cut — 截取字符串

string str_cut (string $string, int $length, [string $dot = '...'], [string $charset = 'utf-8'])

str_cut() 将字符串 string 截取 length个长度,并在结尾添加 etc省略符,返回新的字符串。

string $string: 原始字符串

int $length: 截取长度

string $dot: 省略符

string $charset: 字符集



Copyright ©2009 - 2014 CmsTop.Com.All rights reserved.
思拓合众