protected function transliterateQuotationMarks($str) { $str = preg_replace('/\'(.*)\'/u', '「${1}」', $str); $str = preg_replace('/"(.*)"/u', '『${1}』', $str); return $str; }