Showing entries 1 to 1
Displaying posts with tag: ltrim (reset)
How To - Remove Leading Zeros

Solutions

Using PHP function intval().

Code example: echo intval(”05″);
Returned value: 5

Using PHP function ltrim().

Code example: echo ltrim(”005″,”0″);
Returned value: 5

ShareThis

Showing entries 1 to 1