Flow PHP

ASCIIValue

FinalYes

Methods

__construct()  : mixed
length()  : int
mb_str_pad()  : string
Solution and all credits goes to https://stackoverflow.com/a/58272671.
print()  : string

Methods

__construct()

public __construct(null|array<string|int, mixed>|bool|Entry<mixed, mixed>|float|int|string $value) : mixed
Parameters
$value : null|array<string|int, mixed>|bool|Entry<mixed, mixed>|float|int|string

length()

public length([int|bool $truncate = 20 ]) : int
Parameters
$truncate : int|bool = 20
Return values
int

mb_str_pad()

Solution and all credits goes to https://stackoverflow.com/a/58272671.

public static mb_str_pad(string $input, int $length[, string $padding = ' ' ][, int $padType = STR_PAD_RIGHT ][, string $encoding = 'UTF-8' ]) : string
Parameters
$input : string
$length : int
$padding : string = ' '
$padType : int = STR_PAD_RIGHT
$encoding : string = 'UTF-8'
Return values
string

print()

public print([int|bool $truncate = 20 ]) : string
Parameters
$truncate : int|bool = 20
Return values
string

        
On this page

Search results