本文介绍了如何删除像“&”这样的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 $ description =  与任何最终用户密切合作€™项目; 
$ description = str_replace( ,$ description);
$ description = str_replace( ,$ description);
$ description = str_replace( â ,$ description);
// $ current_encoding = mb_detect_encoding($ text,'auto');
// $ text = iconv($ current_encoding,'UTF-8',$ text);

echo $ description ;







这是我的代码,它给我这样的输出



在任何Ëœagileâ项目上与最终用户密切合作



i想要这样的回答与最终用户密切合作开展任何敏捷项目

请帮助我...快速

解决方案




$description="Work closely with end users on any ‘agile’ projects Â";
$description=str_replace("Â", "", $description);
    $description=str_replace("€", "", $description);
    $description=str_replace("â", "", $description);
    //$current_encoding = mb_detect_encoding($text, 'auto');
    //$text = iconv($current_encoding, 'UTF-8', $text);

echo $description;




this is my code, it give me output like this

Work closely with end users on any Ëœagileâ„¢ projects

i want answer like this Work closely with end users on any agile projects
please help me...as fast

解决方案




这篇关于如何删除像“&”这样的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 12:49