Re: Text Parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Nichel wrote:
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().

Arrr ye swashbuckler, ye be forgettin' me, the pirate!


Arrr, there be treasure in them thar hills! Lootin' time! Arrr!

--
Daniel Schierbeck

Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/register&r=6584

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux