RE: [PHP-WIN] Searching for many keywords simultaneously
| From: | Scott Hurring | Date: | Tue, 21 May 2002 17:37:20 +0000 |
| Subject: | RE: [PHP-WIN] Searching for many keywords simultaneously | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13890@lists.php.net to get a copy of this message | ||
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
ScottH@eac.com
Voice: 201-462-2149
Fax: 201-288-1515
> -----Original Message-----
> From: R.S. Herhuth [mailto:ronherhuth@pop.mindspring.com]
> Sent: Tuesday, May 21, 2002 8:40 AM
> To: php-windows@lists.php.net
> 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
>