Log in

View Full Version : str_replace multi replace in the same statement?



Dennis_Gull
06-28-2007, 09:52 AM
Hey, just got a fast question:
Is it possible to replace more then one letter / combination in the same statement?
For example if I wanna remove / and ¤ is it then possible to do it in one
$var = str_replace ?

Twey
06-28-2007, 04:31 PM
Yes:
$var = str_replace(array('/', '¤'), array(), $var);