yii\helpers\BaseInflector::titleize PHP 메소드

titleize() 공개 정적인 메소드

Converts an underscored or CamelCase word into a English sentence.
public static titleize ( string $words, boolean $ucAll = false ) : string
$words string
$ucAll boolean whether to set all words to uppercase
리턴 string
    public static function titleize($words, $ucAll = false)
    {
        $words = static::humanize(static::underscore($words), $ucAll);
        return $ucAll ? ucwords($words) : ucfirst($words);
    }