@KK,
Please refer to following post: viewtopic.php?f=2&t=9789.
I just wonder is this code only fit for 3 words? I tried to change the following part:
I changed 3 to 2. Strange things happened, it can now search 2 words but failed to search 3 words.
I don't need you to go further on this source code. I just need to confirm. Thank you.
Please refer to following post: viewtopic.php?f=2&t=9789.
I just wonder is this code only fit for 3 words? I tried to change the following part:
- Code: Select all
foreach( $searchwords as $word ){
if( mb_strlen($word, 'UTF-8')>2 ){
$longwords[] = $word;
}
else{
if( mb_strlen($word, 'UTF-8')==2 ){
if(!in_array($val,array('and','the','him','her')))
$shortwords[] = $word;
}
}
}
I changed 3 to 2. Strange things happened, it can now search 2 words but failed to search 3 words.
I don't need you to go further on this source code. I just need to confirm. Thank you.