Posted By

ginoplusio on 11/09/08


Tagged

zero leading eregreplace


Versions (?)

Remove leading zeros


 / Published in: PHP
 

URL: http://www.barattalo.it/

use to remove leading zeros from a db field

  1. $id = ereg_replace("^0+","",$row['id']);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: alli14404 on November 11, 2008

An alternative:

Posted By: alli14404 on November 11, 2008

http://snipplr.com/view/9650/remove-leading-zeros-from-a-string/

You need to login to post a comment.