countHiragana() public static method

Count number of hiragana within the specified string.
public static countHiragana ( string $str ) : integer
$str string The input string.
return integer Returns the number of hiragana.
Beispiel #1
0
 public function testCountHiraganaWhenSutegana()
 {
     $result = Analyzer::countHiragana('ぁぃぅぇぉ');
     $this->assertEquals(5, $result);
 }