Re: [PHP] Text Parser

2004-12-02 Thread Richard Davey
Hello Pablo, Thursday, December 2, 2004, 3:12:09 PM, you wrote: PDM> I´m receiving this: "house , ball , door , roof , floor" PDM> And I want to obtain this: "'house','ball','door','roof','floor'" PDM> Maybe, I should use implode or explode, but I just can´t figure out how.. PDM> Help? You coul

Re: [PHP] Text Parser

2004-12-02 Thread ankur_os
Suppose this is your first string $value house , ball , door , roof , floor $saparate = explode(",",$value); $list = implode("','", $arr1); $final = ('$arr2'); echo $final; Thnx... Quoting Pablo D Marotta <[EMAIL PROTECTED]>: > Hi there.. > A newbie issue: > I´m receiving this: "house , ball

RE: [PHP] Text Parser

2004-12-02 Thread Gryffyn, Trevor
That should do it. The only weird bit is adding the single quotes to the beginning and end of the final string. You could also do a str_replace() And of course you can do regex stuff, but I'm not good at that so I'll leave an example to someone else if they care to give one. Just rem

Re: [PHP] Text Parser

2004-12-02 Thread M. Sokolewicz
Richard Davey wrote: Hello Pablo, Thursday, December 2, 2004, 3:12:09 PM, you wrote: PDM> I´m receiving this: "house , ball , door , roof , floor" PDM> And I want to obtain this: "'house','ball','door','roof','floor'" PDM> Maybe, I should use implode or explode, but I just can´t figure out how.. PD

Re: [PHP] Text Parser

2004-11-24 Thread Daniel Schierbeck
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 t

Re: [PHP] Text Parser

2004-11-24 Thread Daniel Schierbeck
Jesse Castro wrote: [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 a

RE: [PHP] Text Parser

2004-11-24 Thread Jesse Castro
[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 wor

Re: [PHP] Text Parser

2004-11-24 Thread Adrian
$string = str_replace(' ', ',', $string); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text Parser

2004-11-24 Thread Robin Vickery
On Wed, 24 Nov 2004 15:26:44 -0300, Pablo D Marotta <[EMAIL PROTECTED]> 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

Re: [PHP] Text Parser

2004-11-24 Thread John Nichel
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 ins

Re: [PHP] Text Parser

2004-11-24 Thread Greg Donald
On Wed, 24 Nov 2004 15:26:44 -0300, Pablo D Marotta <[EMAIL PROTECTED]> wrote: > 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 m

Re: [PHP] text parser

2002-12-21 Thread Sean Burlington
Uros Gruber wrote: Hi! I wan't to know if there is any goor text parser around here written in php. I'm asking before i create my own. I would like extract some text msgs to words and i would also like take care of stop words, special characters etc... So to know if some word is regular word, or