PHP文字列str_pad

文字列を指定した長さに埋めます。

構文

str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT): string