阅读(859)
赞(3)
Laravel 8 beforeLast {#collection-method}
2021-07-03 16:54:26 更新
beforeLast
方法返回字符串中指定值最后一次出现前的所有内容:
use IlluminateSupportStr;
$slice = Str::of('This is my name')->beforeLast('is');
// 'This '
beforeLast
方法返回字符串中指定值最后一次出现前的所有内容:
use IlluminateSupportStr;
$slice = Str::of('This is my name')->beforeLast('is');
// 'This '
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com