Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.
Anahkiasen edited this page Dec 19, 2012 · 1 revision

Available methods


Alter a number

Number::padding(number, padding, direction)

Add 0 padding to a number

Number::padding(5, 5, STR_PAD_BOTH) // Returns '00500'

Number::paddingLeft(number, padding)

Add 0 padding to the left of a number

Number::paddingLeft(5, 5) // Returns '00005'

Number::paddingRight(number, padding)

Add 0 padding to the right of a number

Number::paddingRight(5, 5) // Returns '50000'
Clone this wiki locally