Page MenuHomeDevCentral

function mb_str_pad($input, $pad_length, $pad_string, $pad_type, $encoding)
Keruald global functions ()

Pads a multibytes string to a certain length with another string

Parameters
string$inputthe input string
int$pad_lengththe target string size
string$pad_stringthe padding characters (optional, default is space)
int$pad_typeSTR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH (optional, default is STR_PAD_RIGHT)
string$encodingthe character encoding (optional)
Return
stringthe padded string
Defined
core.php:27