Home > Backend Development > PHP Tutorial > 函数不支持mb_strlen怎么办?

函数不支持mb_strlen怎么办?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:26:55
Original
2202 people have browsed it

函数不支持mb_strlen怎么办?


回复讨论(解决方案)

window  
先到PHP扩展目录查看有没有php_mbstring.dll文件 如果有  需要到PHP.ini中打开扩展
把  
;extension=php_mbstring.dll  
改成  
extension=php_mbstring.dll  

那就开启mb扩展


我已经改过这个:把  
;extension=php_mbstring.dll  
改成  
extension=php_mbstring.dll  

怎么扩展,希望给予帮助,谢谢!

你的环境什么?

说实话,我不明白您的意思

你的php环境,操作系统是什么,web服务器是什么?

修改后要重启服务的才可以。

具体可以说下你的操作流程,修改php.ini文件之后,需要重启服务才可生效。

$s='我是你1234abc';function my($str){    $strlen=0;    for($i=0;$i<strlen($str);$i++){        if(ord(substr($str,$i,1))>0xa0){            $strlen+=0.5;        }else{            $strlen+=1;        }    }    return $strlen;}echo my($s);
Copy after login

10
Copy after login

遇到同样的问题,求解答,谢谢!!!

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