阅读(711)
赞(6)
Laravel 8 startsWith {#collection-method}
2021-07-05 09:43:54 更新
startsWith
用于判断字符串是否以指定值开头:
use IlluminateSupportStr;
$result = Str::of('This is my name')->startsWith('This');
// true
startsWith
用于判断字符串是否以指定值开头:
use IlluminateSupportStr;
$result = Str::of('This is my name')->startsWith('This');
// true
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com