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
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
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
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
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
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
[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
$string = str_replace(' ', ',', $string);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
12 matches
Mail list logo