Re: Trying to build intelligent query from question
| From: | Jason Wong | Date: | Sun, 14 Jul 2002 16:58:22 +0000 |
| Subject: | Re: Trying to build intelligent query from question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107620@lists.php.net to get a copy of this message | ||
On Monday 15 July 2002 01:00, Peter J. Schoenster wrote:
> I may be doing this all the wrong way :) so feel free to let me know,
> thanks.
I'm not going to comment on your overall concept.
> I've been developing a q/a database. I don' want to search on "what I
> consider" common words. Certainly there must be a list of these. Anyhow, I
> explode the question string into words and then iterate as such:
>
>
> foreach($words as $Key=>$Value) {
> if($ignoreWords[strtolower($Value)]) {
> continue;
> }
You would be better off using array_diff().
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Conquering Russia should be done steppe by steppe.
*/