str_pad

str_pad ($input, $pad_length, [$pad_string], [$pad_type])

Execute PHP Function str_pad

To exectute the function online enter your test data into the form fields for each parameter and press the "Execute" button. Parameters in brackets are optional.