Zend/PHP: How to remove all leading 0s from string ?

Posted by Awan on Stack Overflow See other posts from Stack Overflow or by Awan
Published on 2010-04-14T10:34:32Z Indexed on 2010/04/14 10:53 UTC
Read the original article Hit count: 182

I have a string which contains only numbers. Now I want to remove all leading 0s from that string

For example:

input: 000000001230
output: 1230


input: 01000
output: 1000

Is there any function in PHP/Zend for this?

Thanks

© Stack Overflow or respective owner

Related posts about zend

Related posts about zend-framework