Laravel 8 substr {#collection-method}
2021-07-19 10:35 更新
substr 方法返回字符串中 start 和 length 的参数指定的字符串部分:
use Illuminate\Support\Str;
$string = Str::of('Laravel Framework')->substr(8);
// Framework
$string = Str::of('Laravel Framework')->substr(8, 5);
// Frame 以上内容是否对您有帮助:

免费 AI IDE


更多建议: