Home  >  Article  >  Backend Development  >  请教如何删除价格里面的货币符号

请教如何删除价格里面的货币符号

WBOY
WBOYOriginal
2016-06-13 12:18:561557browse

请问怎么删除价格里面的货币符号
请问怎么删除价格里面的货币符号 $¥£
------解决思路----------------------
$txt = preg_replace('/$
------解决思路----------------------

------解决思路----------------------
£/', '', $txt);
------解决思路----------------------

<br />$txt = '$¥£123';<br />echo str_replace(array('$','¥','£'),'',$txt);<br />

Statement:
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