I am wondering if it would be possible to do something like below:
if I have W,d,X and I want them all to be 5 can I do:
str_replace("W,d,X", "5", $anyStr);
-D
Check out http://www.php.net/str_replace. It tells you that any of the arguments can be an array.
Diego
Like diego said, check the manual.
<?php $items = array('W', 'd', 'X'); str_replace($items, 5, $anystr); ?>