rd (*) to end of word
if(!$isPhrase) {
$searchItems[$i].= '*';
$i++;
}
//Check for end of Phrase
if(substr($searchItems[$i],-1) == '"') {
$isPhrase= false;
Gustav Wiberg wrote:
- Original Message - From: "Paul Groves"
<[EMAIL PROTECTED]>
To:
Sent: Wednesday, September 07, 2005 4:54 PM
Subject: [PHP] Breaking up search terms into an array intelligently
I want to be able to break up a number of search terms typed into an
I want to be able to break up a number of search terms typed into an input
box into array, simple enough one would think, just use explode, e.g
$array = explode(" ", $string);
But what if I want to be able to cope with search terms seperated by > 1
space (a common typing error)? This should wor
3 matches
Mail list logo