Showing entries 1 to 1 Displaying posts with tag: intval (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 (22) Frederic Descamps (12) Michael McLaughlin (9) Alena Subotina (6) Marco Tusa (4) Daniel Nichter (3) Dave Stokes (2) Kyle Hailey (2) Olivier Dasini (2) Andrew Grimo (1) Dimitri Kravtchuk (1) Jean-François Gagné (1) Saroj Tripathy (1) Oracle MySQL Blogs Oracle's MySQL Blog (8) Team Blogs ScaleGrid.io (1) Vendor Blogs Percona (16) Codership (3) dbi services (2) HowToForge (2) MyDBOPS (2) PlanetScale (2) Search MySQL Links MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums