Text Parser
| From: | Pablo D Marotta | Date: | Wed, 24 Nov 2004 18:26:44 +0000 |
| Subject: | Text Parser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202779@lists.php.net to get a copy of this message | ||
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.
Any ideas?
Thanks!
Pablo
American Express made the following
annotations on 11/24/04 11:34:02
------------------------------------------------------------------------------
******************************************************************************
"This message and any attachments are solely for the intended recipient and may contain
confidential or privileged information. If you are not the intended recipient, any disclosure,
copying, use, or distribution of the information included in this message and any attachments is
prohibited. If you have received this communication in error, please notify us by reply e-mail and
immediately and permanently delete this message and any attachments. Thank you."
******************************************************************************
==============================================================================