Skip to content

Add manual for mb_str_pad function since PHP 8.3Β #2701

@youkidearitai

Description

@youkidearitai

ref: https://wiki.php.net/rfc/mb_str_pad

function mb_str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string {}

example:

var_dump(mb_str_pad("πŸŽ‰", 3, "η₯", STR_PAD_LEFT)));

result:

string(10) "η₯η₯πŸŽ‰"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions