Showing entries 1 to 1 Displaying posts with tag: ltrim (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 Top Authors Joshua Otwell (17) Frederic Descamps (7) Shahid shaikh (7) Michael McLaughlin (5) Alena Subotina (4) Jean-François Gagné (4) Daniel Nichter (3) Chandan Kumar (2) Kedar Vaijanapurkar (2) Marco Tusa (2) RoseHosting (2) Shahryar Ghazi (2) Ansgar Becker (1) Evert Pot (1) Ivan Ma (1) Kristian Köhntopp (1) Olivier Dasini (1) Oracle MySQL Blogs Oracle's MySQL Blog (60) Vendor Blogs Percona (35) Codership (4) PlanetScale (3) MyDBOPS (2) dbi services (1) Search MySQL Links MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums