阅读(2840)
赞(6)
Laravel 8 Str::studly()
2021-07-03 16:54:23 更新
Str::studly
方法将带有 _
的字符串转换成驼峰命名的字符串,与 Str::snake()
相反,例如:
use IlluminateSupportStr;
$converted = Str::studly('foo_bar');
// FooBar
Str::studly
方法将带有 _
的字符串转换成驼峰命名的字符串,与 Str::snake()
相反,例如:
use IlluminateSupportStr;
$converted = Str::studly('foo_bar');
// FooBar
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com