發(fā)表日期:2018-05 文章編輯:小燈 瀏覽次數(shù):3404
函數(shù)名:cn_substr
適用版本:(>=DedeCMS 2,DedeCMS 3,DedeCMS 4,DedeCMS 5)
功能:截取中文字符串
參數(shù):
$str=''需要截取的字符串
$slen=''需要截取的長(zhǎng)度,單字節(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ù):3952
日期:2019-09 瀏覽次數(shù):5219
日期:2018-06 瀏覽次數(shù):4244
日期:2018-06 瀏覽次數(shù):3973
日期:2018-05 瀏覽次數(shù):4218
日期:2018-05 瀏覽次數(shù):4434
日期:2018-05 瀏覽次數(shù):5102
日期:2018-05 瀏覽次數(shù):3925
日期:2018-05 瀏覽次數(shù):4081
日期:2018-05 瀏覽次數(shù):4439
日期:2018-05 瀏覽次數(shù):3403
日期:2018-03 瀏覽次數(shù):3337
日期:2018-03 瀏覽次數(shù):3449
日期:2018-01 瀏覽次數(shù):3299
日期:2018-01 瀏覽次數(shù):4009
日期:2018-01 瀏覽次數(shù):3341
日期:2018-01 瀏覽次數(shù):3140
日期:2017-12 瀏覽次數(shù):3230
日期:2017-12 瀏覽次數(shù):3474
日期:2017-12 瀏覽次數(shù):3506
日期:2017-12 瀏覽次數(shù):3060
日期:2017-12 瀏覽次數(shù):3419
日期:2017-12 瀏覽次數(shù):3175
日期:2017-12 瀏覽次數(shù):3215
日期:2017-12 瀏覽次數(shù):3119
日期:2017-12 瀏覽次數(shù):3221
日期:2017-12 瀏覽次數(shù):3165
日期:2017-12 瀏覽次數(shù):3142
日期:2019-09 瀏覽次數(shù):3138
日期:2017-12 瀏覽次數(shù):3197
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.