Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Jason Wong
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

Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Peter J. Schoenster
foreach($words as $Key=$Value) { if($ignoreWords[strtolower($Value)]) { continue; } You would be better off using array_diff(). Jason, Thanks, that works except that it doesn't account for case. I want to ignore case as it doesn't apply here. But I was able to