protected function cssMatcher($matches)
    {
        $chr = $matches[0];
        if (strlen($chr) == 1) {
            $ord = ord($chr);
        } else {
            $chr = $this->convertEncoding($chr, 'UTF-32BE', 'UTF-8');
            $ord = hexdec(bin2hex($chr));
        }
        return sprintf('\\%X ', $ord);
    }
protected function cssMatcher($matches)
    {
        $chr = $matches[0];
        if (strlen($chr) == 1) {
            $ord = ord($chr);
        } else {
            $chr = $this->convertEncoding($chr, 'UTF-32BE', 'UTF-8');
            $ord = hexdec(bin2hex($chr));
        }
        return sprintf('\\%X ', $ord);
    }
protected function cssMatcher ( $ matches ) { $ chr = $ matches [ 0 ] ; if ( strlen ( $ chr ) == 1 ) { $ ord = ord ( $ chr ) ; } else { $ chr = $ this -> convertEncoding ( $ chr , 'UTF-32BE' , 'UTF-8' ) ; $ ord = hexdec ( bin2hex ( $ chr ) ) ; } return sprintf ( '\\%X ' , $ ord ) ; }
Callback function for preg_replace_callback that applies CSS
escaping to all matches.

@param array $matches
@return string
Callback function for preg_replace_callback that applies CSS escaping to all matches .