whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Str
/
Byte
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Str/Byte/pad_right.php
<?php declare(strict_types=1); namespace Psl\Str\Byte; use function str_pad; use const STR_PAD_RIGHT; /** * Returns the string padded to the total length by appending the `$pad_string` * to the right. * * If the length of the input string plus the pad string exceeds the total * length, the pad string will be truncated. If the total length is less than or * equal to the length of the input string, no padding will occur. * * @param non-empty-string $pad_string * @param int<0, max> $total_length * * @pure */ function pad_right(string $string, int $total_length, string $pad_string = ' '): string { return str_pad($string, $total_length, $pad_string, STR_PAD_RIGHT); }
Copyright ©2021 || Defacer Indonesia