3 thoughts on “How To – Remove Leading Zeros

  1. And, just because it’s tagged PHP/MySQL…

    mysql> SELECT TRIM( LEADING 0 FROM 00124000 );
    +———————————+
    | TRIM( LEADING 0 FROM 00124000 ) |
    +———————————+
    | 124000 |
    +———————————+
    1 row in set (0.00 sec)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">