FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » no results when a search includes a numerical character
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: no results when a search includes a numerical character [message #40019 is a reply to message #40018] Fri, 04 January 2008 12:22 Go to previous messageGo to previous message
srchild is currently offline  srchild
Messages: 88
Registered: December 2003
Location: UK
Karma:
Member
srchild wrote on Fri, 04 January 2008 11:41

Is it just a matter of changing

default:
$t1 = array_unique(str_word_count(strip_tags(strtolower($text)), 1));

to

default:
$t1 = array_unique(str_word_count(strip_tags(strtolower($text)), 1,1234567890));


Hmm, maybe this requires PHP >= 5.1?

From the php manual:

http://uk2.php.net/manual/en/function.str-word-count.php

Quote:

Description
mixed str_word_count ( string $string [, int $format [, string $charlist ]] )

ChangeLog
Version Description
5.1.0 Added the charlist parameter






Simon Child
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: i18n characters not showing in dates! (utf-8)
Next Topic: Timezones
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu May 09 15:56:35 GMT 2024

Total time taken to generate the page: 0.04247 seconds