xbl12
Programmer
- Dec 12, 2006
- 66
Hi;
I am trying to replace the empty space with the ',' from a string which group by unicode.
I want to have result as following;
?=?','?=?','?=?','?=?','?=?','?=?','?=?','?=?
but my code does not do anything,just give me like the following,could anyone help me, please, thanks.
?=????=????=????=????=????=????=????=?
<?php
mb_internal_encoding("UTF-8");
$search=" ";
$replace="','";
$string="?=????=????=????=????=????=????=????=?";
echo str_ireplace($search,$replace,$string);
?>
I am trying to replace the empty space with the ',' from a string which group by unicode.
I want to have result as following;
?=?','?=?','?=?','?=?','?=?','?=?','?=?','?=?
but my code does not do anything,just give me like the following,could anyone help me, please, thanks.
?=????=????=????=????=????=????=????=?
<?php
mb_internal_encoding("UTF-8");
$search=" ";
$replace="','";
$string="?=????=????=????=????=????=????=????=?";
echo str_ireplace($search,$replace,$string);
?>