yii\helpers\BaseStringHelper::countWords PHP 메소드

countWords() 공개 정적인 메소드

Counts words in a string
부터: 2.0.8
public static countWords ( string $string ) : integer
$string string
리턴 integer
    public static function countWords($string)
    {
        return count(preg_split('/\\s+/u', $string, null, PREG_SPLIT_NO_EMPTY));
    }