Function __global->str_pad

Definitions

sources_custom/phpstub.php

  • Pad a string to a certain length with another string.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$input string required parameter N/A N/A The subject
$pad_length integer required parameter N/A N/A The length to pad up to
$pad_string string N/A N/A What we are padding with
$pad_type integer 1 N/A N/A The padding type (STR_PAD_RIGHT, STR_PAD_LEFT, STR_PAD_BOTH)

Return

  • The result
  • Type: string
  • Set: N/A
  • Range: N/A