stuckwithcode Posted February 17, 2010 Share Posted February 17, 2010 I am trying to echosome text, so I convert the spaces to   and its works, apart from the last one is show as   not as a space $test = "car a"; $test = str_replace(" ", " ", $test); echo $test; but i get "car  a", how can I get all of the spaces or get php to echo multiple spaces Thanks Link to comment https://forums.phpfreaks.com/topic/192322-please-help/ Share on other sites More sharing options...
teamatomic Posted February 17, 2010 Share Posted February 17, 2010 While that may be working for you, a no break space is actually , note the semi-colon on the end. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/192322-please-help/#findComment-1013462 Share on other sites More sharing options...
stuckwithcode Posted February 17, 2010 Author Share Posted February 17, 2010 Thanks for the help, worked like a charm Link to comment https://forums.phpfreaks.com/topic/192322-please-help/#findComment-1013463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.