git config --global core.autocrlf input
uksort($arr,function($a,$b){ return $b['count'] - $a['count'];})
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 ); }
$text = preg_replace('#\s#u', ' +$1', $text);
$('.urlparam').each(function(index) {
$(this).click({num: (index+1), text: $(this).value()},toFunction);
});