Hi there..
A newbie issue:
I´m receiving this: "house , ball , door , roof , floor"
And I want to obtain this: "'house','ball','door','roof','floor'"
Maybe, I should use implode or explode, but I just can´t figure out how..
Help?
American Express made the following
annotations on 12/02/04 08:1
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
u give it. This is good for things like what you're doing above, but
in this case a simple str_replace() works just as good too.
-TG
> -Original Message-
> From: Pablo D Marotta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 02, 2004 10:12 AM
> To: [EMA
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
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
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
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 if is number, html
15 matches
Mail list logo