📜  laravel 显示更少的文本 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:01.956000             🧑  作者: Mango

代码示例1
use Illuminate\Support\Str;

$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20, ' (...)');

// The quick brown fox (...)