發(fā)表日期:2018-05 文章編輯:小燈 瀏覽次數(shù):3451
函數(shù)名:cn_substr
適用版本:(>=DedeCMS 2,DedeCMS 3,DedeCMS 4,DedeCMS 5)
功能:截取中文字符串
參數(shù):
$str=''需要截取的字符串
$slen=''需要截取的長度,單字節(jié)截取模式,一個(gè)中文占用2個(gè)字節(jié)
$startdd=0截取開始位置標(biāo)記處,默認(rèn)為0從頭開始
返回值:
返回截取后的字符串,錯(cuò)誤返回空字符串
范例:
{field:titlefunction='cn_substr(@me,10)'/}
表示將會(huì)截取titile中5個(gè)中文字符內(nèi)容。
日期:2018-06 瀏覽次數(shù):4017
日期:2019-09 瀏覽次數(shù):5279
日期:2018-06 瀏覽次數(shù):4308
日期:2018-06 瀏覽次數(shù):4032
日期:2018-05 瀏覽次數(shù):4282
日期:2018-05 瀏覽次數(shù):4502
日期:2018-05 瀏覽次數(shù):5153
日期:2018-05 瀏覽次數(shù):3983
日期:2018-05 瀏覽次數(shù):4161
日期:2018-05 瀏覽次數(shù):4503
日期:2018-05 瀏覽次數(shù):3450
日期:2018-03 瀏覽次數(shù):3377
日期:2018-03 瀏覽次數(shù):3505
日期:2018-01 瀏覽次數(shù):3348
日期:2018-01 瀏覽次數(shù):4056
日期:2018-01 瀏覽次數(shù):3380
日期:2018-01 瀏覽次數(shù):3188
日期:2017-12 瀏覽次數(shù):3280
日期:2017-12 瀏覽次數(shù):3543
日期:2017-12 瀏覽次數(shù):3557
日期:2017-12 瀏覽次數(shù):3111
日期:2017-12 瀏覽次數(shù):3492
日期:2017-12 瀏覽次數(shù):3218
日期:2017-12 瀏覽次數(shù):3271
日期:2017-12 瀏覽次數(shù):3165
日期:2017-12 瀏覽次數(shù):3266
日期:2017-12 瀏覽次數(shù):3212
日期:2017-12 瀏覽次數(shù):3200
日期:2019-09 瀏覽次數(shù):3180
日期:2017-12 瀏覽次數(shù):3236
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.