public function clean_text_match ($text, $all_words)
{
//global $db, $bb_cfg;
$text = ' '. mb_strtolower($text, 'UTF-8') .' ';
if ($all_words)
{
$text = preg_replace('#\s(\b\w)#', ' +$1', $text);
}
//$text_match_sql = $db->escape(trim($text));
return $text;
}
public function aaaAction()
{
echo $this->clean_text_match( 'секс в большом городе', true );
}