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

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

WBOY
Release: 2016-06-13 10:00:58
Original
847 people have browsed it

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?

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template