Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace the empty space with ',' from unicode

Status
Not open for further replies.

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);
?>
 
Thanks for come here, i have solved out the problem already
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top