找不到帮助文档?你想要哪方面的帮助教程?提交文档建议 >
帮助文档首页
DiYunCMS公众号
公众号二维码

文本转化为拼音

更新时间:2022-10-31 加入收藏
0
 \Phpcmf\Service::L('pinyin')->result("文本内容")

模板写法:

 {php echo \Phpcmf\Service::L('pinyin')->result("文本内容");}

示例:

{php echo \Phpcmf\Service::L('pinyin')->result($t['title']);}

只转首字母

{php echo substr(\Phpcmf\Service::L('pinyin')->result($t['title']), 0, 1);}


--
有帮助
--
没帮助
0
收藏
0
打赏
相关文档
Hello,欢迎来咨询~
点击在线咨询