okay, I get confused which php array functions to employ, to get the most efficient code. 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'. How do I do this best? It should work with php 4 and 5. Thanks, hans