开发者

PHP Hash Removal

开发者 https://www.devze.com 2023-03-03 14:12 出处:网络
How 开发者_运维知识库can I remove all hashes from a string with PHP? I\'ve tried str_replace(\"#\",\"\",$message), but it didn\'t work.Remember that str_replace() return replaced text.

How 开发者_运维知识库can I remove all hashes from a string with PHP?

I've tried str_replace("#","",$message), but it didn't work.


Remember that str_replace() return replaced text.

Example:

$a = '### Foo ###';
$a = str_replace('#', '', $a);
echo $a;

DEMO

0

精彩评论

暂无评论...
验证码 换一张
取 消