yii\helpers\BaseInflector::humanize PHP Метод

humanize() публичный статический Метод

Returns a human-readable string from $word
public static humanize ( string $word, boolean $ucAll = false ) : string
$word string the string to humanize
$ucAll boolean whether to set all words to uppercase or not
Результат string
    public static function humanize($word, $ucAll = false)
    {
        $word = str_replace('_', ' ', preg_replace('/_id$/', '', $word));
        return $ucAll ? ucwords($word) : ucfirst($word);
    }