Home  >  Article  >  Backend Development  >  thinkphp截取字符串,该如何处理

thinkphp截取字符串,该如何处理

WBOY
WBOYOriginal
2016-06-13 13:52:22805browse

thinkphp截取字符串
{$user.username|msubstr=5,5,'utf-8',false}
我用这个截取时:
Fatal error: Call to undefined function msubstr() in F:\wamp\www\new97zb\Myapp\Cache\bbbbf2d63f96ab30d4a28e1f84d9d0a2.php on line 113
报这个错,我知道是没有导入文件。想知道这个怎么导入啊。

------解决方案--------------------
msubstr函数不存在,你是不是敲错了?
mb_substr?

或者哪个库文件没有包含进来?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn