阅读(4359)
赞(4)
Laravel 8 ucfirst {#collection-method}
2021-07-05 09:43:55 更新
ucfirst
方法用于将指定字符串转换为首字母大写的形式并将其返回:
use IlluminateSupportStr;
$string = Str::of('foo bar')->ucfirst();
// Foo bar
ucfirst
方法用于将指定字符串转换为首字母大写的形式并将其返回:
use IlluminateSupportStr;
$string = Str::of('foo bar')->ucfirst();
// Foo bar
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com