eddy556 Posted February 15, 2009 Share Posted February 15, 2009 Hi, when I am receive any values from POST any spaces are swapped with underscores (_) as such: Dragon_Ball_-_Fortun_Teller_Baba_Saga However I would like to be able to compare this to: Dragon Ball - Fortun Teller Baba Saga So therefore how would I go about removing all of the underscores in order to provide a comparison? Link to comment https://forums.phpfreaks.com/topic/145336-post-values-with-underscores/ Share on other sites More sharing options...
genericnumber1 Posted February 15, 2009 Share Posted February 15, 2009 <?php $str = 'Dragon_Ball_-_Fortun_Teller_Baba_Saga'; echo str_replace('_', ' ', $str); Link to comment https://forums.phpfreaks.com/topic/145336-post-values-with-underscores/#findComment-762990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.