Count number of katakana within the specified string. Chōonpu
(http://en.wikipedia.org/wiki/Chōonpu) is considered as Katakana here.
public static countKatakana ( string $str ) : integer | ||
$str | string | The input string. |
return | integer | Returns the number of katakana |