Fatal error: Call to undefined function mb_substr()
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wanted to see your input on this concern I'm currently experiencing. It turns out that: <?php $disc_t=$name; if(strlen($disc_t)<=15) { $name_now=mb_substr( strip_tags($disc_t), 0, 10 ).''; } else { $name_now=mb_substr( strip_tags($disc_t), 0, 10).'...'; } ?> is somehow giving me an error on the site, the error shows: Fatal error: Call to undefined function mb_substr() in /home/(website)/public_html/index.php on line 308 I don't quite understand what they mean by mb_substr , is this a PHP version error? I am currently using PHP 5.3.19 回答1: