Showing entries 1 to 1 Search Planet MySQL Go Displaying posts with tag: remove (reset) Oct 07 2008 How To - Remove Leading Zeros Posted by Adam Douglas on Tue 07 Oct 2008 19:49 UTC Tags: PHP/MySQL, PHP/MySQL/MSSQL, How Tos, intval, leading, ltrim, remove, strip, zero, 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 Get Started Contributing Contributing to MySQL Developer Guide Top Authors Ronald Bradford (5) Jean-François Gagné (4) Alkin Tezuysal (3) Kedar Vaijanapurkar (2) Marco Tusa (2) Olivier Dasini (2) Alena Subotina (1) Dimitri Kravtchuk (1) Øystein Grøvlen (1) RoseHosting (1) Shahid shaikh (1) Oracle MySQL Blogs Oracle's MySQL Blog (42) Vendor Blogs Percona (11) ProxySQL (1) PlanetScale (1) MySQL Links MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums