Faking Boolean
| From: | John Taylor-Johnston | Date: | Thu, 06 Apr 2006 06:08:39 +0000 |
| Subject: | Faking Boolean | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-233329@lists.php.net to get a copy of this message | ||
How can I take enquiry:
<input name="searchenquiry" type="text" value="john">
or
<input name="searchenquiry" type="text" value="john johnston">
and parse its value to come up with this to do a boolean search
+"john"
or
+"john" +"johnston"
Does there exist a function yet :) ? I suppose I could explode $searchenquiry for spaces and reassemble the bits?