How to substring number ?

Hello friends

How to substring number

00001 = 1

00010 = 10

00104 = 104

do you idea ??

thank you…

http://php.net/manual/en/function.intval.php ?