JpnForPhp\Helper\Helper::convertHiraganaToKatakana PHP 메소드

convertHiraganaToKatakana() 공개 정적인 메소드

Simply wrap the mb_convert_kana function.
public static convertHiraganaToKatakana ( string $str ) : string
$str string String to be converted.
리턴 string Converted string.
    public static function convertHiraganaToKatakana($str)
    {
        return mb_convert_kana($str, 'C', 'UTF-8');
    }

Usage Example

예제 #1
0
 public function testConvertHiraganaToKatakanaWhenMixCharacters()
 {
     $result = Helper::convertHiraganaToKatakana($this->mixCharacters);
     $this->assertEquals('今日、Joo「ジョオ」ハ学校ニイマス。', $result);
 }
All Usage Examples Of JpnForPhp\Helper\Helper::convertHiraganaToKatakana