Laravel 8 Str::words() {#collection-method}
2021-07-19 10:30 更新
Str::words
方法用于限制字符串中的单词数:
use Illuminate\Support\Str;
return Str::words('Perfectly balanced, as all things should be.', 3, ' >>>');
// Perfectly balanced, as >>>
以上内容是否对您有帮助:
更多建议: