graham23s Posted September 4, 2007 Share Posted September 4, 2007 Hi Guys, i have my str_replace code workin great: $search_txt = str_replace("."," ",$file_name); aswell as dots i want to replace - with a space can i do more than 1 at the same time? cheers Graham Quote Link to comment https://forums.phpfreaks.com/topic/67885-solved-str_replace-question/ Share on other sites More sharing options...
jitesh Posted September 4, 2007 Share Posted September 4, 2007 $search_text = str_replace(array(".","_"),array(" "," "),$file_name); Quote Link to comment https://forums.phpfreaks.com/topic/67885-solved-str_replace-question/#findComment-341233 Share on other sites More sharing options...
Barand Posted September 4, 2007 Share Posted September 4, 2007 $srch = array('.', '-'); $search_txt = str_replace($srch," ",$file_name); Quote Link to comment https://forums.phpfreaks.com/topic/67885-solved-str_replace-question/#findComment-341235 Share on other sites More sharing options...
graham23s Posted September 4, 2007 Author Share Posted September 4, 2007 thanks a lot guys done:) Graham Quote Link to comment https://forums.phpfreaks.com/topic/67885-solved-str_replace-question/#findComment-341237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.