extractKatakana() public static méthode

Split a given string to extract katakana substrings.
public static extractKatakana ( string $str, integer $length, boolean $yoon = false ) : array
$str string The input string.
$length integer (optional) Define an optional substring length. Default to 0 which means substrings will be returned as it is.
$yoon boolean (optional) Whether considering the base syllable and the following yoon character as a single character or not Default to false.
Résultat array An array of katakana substrings.
Exemple #1
0
 public function testExtractKatakanaIssue24()
 {
     $result = Helper::extractKatakana('カタカナ|ヒラガナ');
     $this->assertSame(array('カタカナ', 'ヒラガナ'), $result);
 }