Package

ViewHelpers

ViewHelper Documentation

format.padding

Formats a string using PHPs str_pad function.

= Examples =

<f:format.padding padLength="10">TYPO3</f:format.padding> TYPO3 (note the trailing whitespace)

<f:format.padding padLength="10" padString="-=">TYPO3</f:format.padding> TYPO3-=-=-

<f:format.padding padLength="10" padString="-" padType="both">TYPO3</f:format.padding> --TYPO3---

Arguments

value string

string to format

padLength anySimpleType

Length of the resulting string. If the value of pad_length is negative or less than the length of the input string, no padding takes place.

padString string

The padding string

padType string

Append the padding at this site (Possible values: right,left,both. Default: right)

ViewHelper Resources

Schema Resources