阅读(2475)
赞(9)
Laravel 8 Str::before() {#collection-method}
2021-07-03 15:41:05 更新
Str::before
方法返回字符串中指定值之前的所有内容:
use IlluminateSupportStr;
$slice = Str::before('This is my name', 'my name');
// 'This is '
Str::before
方法返回字符串中指定值之前的所有内容:
use IlluminateSupportStr;
$slice = Str::before('This is my name', 'my name');
// 'This is '
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com