Hello all, How can i replace the spaces with one space using str_replace? Forexample this is a sentence. I want to make it like: this is a sentence. PHP: $to_replace = array("\r\n","|","\n","\\r\\n","\\n"); $title = str_replace($to_replace, " ", $title); PHP:
hello, What about if i want to do same thing on &. How will i do. Instead of &&&&&&&&& I want & Thanks