extractKana() public static méthode

Split a given string to extract kana substrings.
public static extractKana ( 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 kana substrings.
Exemple #1
0
 public function testextractKanaWithLengthEqualsNAndYoonTrue()
 {
     $result = Helper::extractKana('ジョオと行きましょう', 3, true);
     $this->assertSame(array('ジョオと', 'きましょ', 'う'), $result);
 }