Re: [PHP] Remove punctuation

2004-09-09 Thread Curt Zirzow
* 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

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
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

Re: [PHP] Remove punctuation

2004-09-09 Thread John Holmes
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

Re: [PHP] Remove punctuation

2004-09-09 Thread John Nichel
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

Re: [PHP] Remove punctuation

2004-09-09 Thread 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 the same speed. Not that speed tests like th

Re: [PHP] Remove punctuation

2004-09-09 Thread John Nichel
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

Re: [PHP] Remove punctuation

2004-09-09 Thread John Nichel
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

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
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

Re: [PHP] Remove punctuation

2004-09-09 Thread John Nichel
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

RE: [PHP] Remove punctuation

2004-09-09 Thread Jay Blanchard
[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

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
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

[PHP] Remove punctuation

2004-09-09 Thread Jed R. Brubaker
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