zero_pad

Adds '0' to the left of the input to the length specified.

Example:

    <$mt:EntryID zero_pad="10"$>

For an entry id of 1023, this would output: "0000001023".

This page was last updated on 2007-08-10, 16:37.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.