> You need to pass a second and third array to array_map() with the same number of elements as the first array. The arguments to the callback function are the elements from each array at the same offset. Wow, thanks for the clarification. I've decided to create my own function and use that instead both because I found that there is some other cleaning to do to the string and that code you posted is way too convoluted to read! :) Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php