Replace in a string different characters with other characters
Suppose the string One two (three) In PHP, in order to replace the spaces with a dash, and parentheses with an empty string, I’d do it like this: str_replace( array( ‘ ‘, ‘(‘, ‘)’ ), array( ‘-‘ ), $key ), because search arg is an array, replace is an array also, and replace has fewer… Read More Replace in a string different characters with other characters