Personally, i'd go with preg_replace and/or preg_match_all.
http://www.php.net/manual/en/function.preg-replace.php

They might not be the fastest way, but certainly one of the
easiest for the programmer.

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 8:40 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Searching for many keywords simultaneously
> 
> 
> 
> I have a search and replace where the search for consists of 
> 300 words. 
> Luckily this will only have to be done when a user uploads a 
> file.  The
> file may contain several hundred words itself.  My question is what is
> the best way to approach searching for this many words?  Should  I use
> an array and loop through the file for each of the search 
> words?  Or is
> there a more efficient method?
> 
> Thanks,
> Ron
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to