0
我试图用xdiff_string_diff()函数像下面找到新旧字符串之间diffrence:xdiff_string_diff()函数返回致命错误
$old_str="Hello world";
$edited_str="Hello ladies!";
echo xdiff_string_diff($old_str,$edited_str,1);
我的服务器返回一个致命错误:
Call to an undefined function
我的php版本是5.4 *
问题是什么?
我需要在我的服务器上安装某些东西才能使此功能正常工作吗?
请帮忙!
你需要安装'xdiff'。在你的控制台输入'pear install xdiff' – jitendrapurohit
[String difference php](http://stackoverflow.com/questions/12002132/string-difference-php) – jitendrapurohit