Re: Text Parser

From: Date: Wed, 24 Nov 2004 19:05:34 +0000
Subject: Re: Text Parser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202785@lists.php.net to get a copy of this message
Pablo D Marotta wrote:
Hi there... 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.
Dah, dah, dahhhhh.... This looks like a job for Captain explode(), and his trusty sidekick, Kid implode(). -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#202785) next »