📜  php laravel 字符串子字符串 - PHP 代码示例

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

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

$padded = Str::of('James')->padRight(10, '-');

// 'James-----'

$padded = Str::of('James')->padRight(10);

// 'James     '