How to replace unicode character u00A0 with a space in PHP

1 Answer

0 votes
$str = "\u00A0\u00A0PHP\u00A0\u00A0";

$str = str_replace("\u00A0", '', $str);

echo $str;




/*
run:

PHP

*/

 



answered Nov 26, 2022 by avibootz

Related questions

...