| 15 June 2002 |
PadStr() |
| Author | Howard A. Bullock |
| Action | Left pad or Right pad a string with specified character(s) to a specified overall length. |
| Syntax | PadStr ($input, $pad, $length, $padside) |
| Parameters | $input (Required / String) String value to which padding is added. $pad (Required / String) One or more characters to be added to the Left or Right of the string $Input. $length (Required / Numeric) The length to which $Input with padding will be trimmed before it is returned through the function. $padside (Optional / String) String [L|R] Default is "L" |
| Remarks | The "$pad" can be one or more characters. If the Padding exceeds the specified maximum length then the resulting string is trimmed preserving the original data. |
| Returns | String |
| Dependencies | None. |
| Examples | |
| Source | |