This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Multibyte String Pad | |
* | |
* Functionally, the equivalent of the standard str_pad function, but is capable of successfully padding multibyte strings. | |
* | |
* @param string $input The string to be padded. | |
* @param int $length The length of the resultant padded string. | |
* @param string $padding The string to use as padding. Defaults to space. | |
* @param int $padType The type of padding. Defaults to STR_PAD_RIGHT. | |
* @param string $encoding The encoding to use, defaults to UTF-8. |