阅读(3397)
赞(22)
Laravel 8 ascii {#collection-method}
2021-07-03 16:54:24 更新
ascii 方法尝试将字符串转换为 ASCII 值:
use Illuminate\Support\Str;
$string = Str::of('ü')->ascii();
// 'u' ascii 方法尝试将字符串转换为 ASCII 值:
use Illuminate\Support\Str;
$string = Str::of('ü')->ascii();
// 'u'