Forums / General / Left padding with zeros

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Left padding with zeros

Author Message

Tristan Koen

Thursday 13 November 2003 3:49:29 am

Hi

Can anyone give me a suggestion on how to LEFT pad a string with zeros. I had a look at the pad() operator but it only seems to do right padding.

I would like to avoid writing a new operator, so any other suggestions would be appreciated.

Thanks