[snip] I need to get a procedure able to do this: 1) Receive a string. For example: "name age address location". 2) Process that string, inserting "comas" between the words in the middle. For example: "name,age,address,location". It´s important that the comas must be inserted after the first word, and before the last one. 3) Return that string. [/snip] $old = "name age address location"; $new = str_replace(" ", ",", $old); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php