> -----Original Message----- > Say I have an array $ar with string values (no key names). > I want to check if there is a value 'xyz', and if there is, I want to > have it replaced with value 'abc'. If you just want to do the replacement, str_replace() accepts an array as its 3rd argument... -Peter