* Thus wrote John Holmes:
> From: "John Nichel" <[EMAIL PROTECTED]>
> >>i think str_replace is faster that ereg_replace
> >
> >We tested that theory a while back on here (I don't remember the subject
> >of the emails, so finding it would be kind of hard), and it came out to be
> >almost exactally
ya, no doubt, i was going to repost my message, i should have said, that
manual suggests using str_replace over ereg_replace... without reason..
i just assumed it was speed and resources..
eitherway, both would work, try em both. :)
Jason
John Nichel <[EMAIL PROTECTED]> wrote:
>
> Jason David
From: "John Nichel" <[EMAIL PROTECTED]>
Not worth losing sleep over...whatever yer comfortable with I
say.
I agree... people love stats like that, though. :)
---John Holmes..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Holmes wrote:
From: "John Nichel" <[EMAIL PROTECTED]>
i think str_replace is faster that ereg_replace
We tested that theory a while back on here (I don't remember the
subject of the emails, so finding it would be kind of hard), and it
came out to be almost exactally the same speed.
Not tha
From: "John Nichel" <[EMAIL PROTECTED]>
i think str_replace is faster that ereg_replace
We tested that theory a while back on here (I don't remember the subject
of the emails, so finding it would be kind of hard), and it came out to be
almost exactally the same speed.
Not that speed tests like th
John Nichel wrote:
Jason Davidson wrote:
i think str_replace is faster that ereg_replace
Jason
We tested that theory a while back on here (I don't remember the subject
of the emails, so finding it would be kind of hard), and it came out to
be almost exactally the same speed.
Around 1/10th of a
Jason Davidson wrote:
i think str_replace is faster that ereg_replace
Jason
We tested that theory a while back on here (I don't remember the subject
of the emails, so finding it would be kind of hard), and it came out to
be almost exactally the same speed.
--
John C. Nichel
ÜberGeek
KegWorks.com
i think str_replace is faster that ereg_replace
Jason
John Nichel <[EMAIL PROTECTED]> wrote:
>
> Jed R. Brubaker wrote:
> > Hi all!
> >
> > I am creating a function that will remove punctuation from a string,
> > however, I am wondering if PHP has a function somewhere that will do the
> > sa
Jed R. Brubaker wrote:
Hi all!
I am creating a function that will remove punctuation from a string,
however, I am wondering if PHP has a function somewhere that will do the
same.
Right now my approach is to cycle through an array of punctuation and remove
the items.
Anything already exist?
Tha
[snip]
I am creating a function that will remove punctuation from a string,
however, I am wondering if PHP has a function somewhere that will do the
same.
Right now my approach is to cycle through an array of punctuation and
remove
the items.
Anything already exist?
[/snip]
Have you looked at
http://ca3.php.net/manual/en/function.str-replace.php
if you have the array of puncuation already, i think that is your
solution.
Jason
"Jed R. Brubaker" <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I am creating a function that will remove punctuation from a string,
> however, I am wondering
Hi all!
I am creating a function that will remove punctuation from a string,
however, I am wondering if PHP has a function somewhere that will do the
same.
Right now my approach is to cycle through an array of punctuation and remove
the items.
Anything already exist?
Thanks!
--
PHP Genera
12 matches
Mail list logo