removing begining chars with php

Status
Not open for further replies.

phin

Ars Tribunus Militum
1,547
okay i have a line that is as follows.

0000012120

i need to remove all the 0's at the front of the line and have it return in a varible.

The return whould look like this.

12120

note, these begining number will always be zeros. but the number may contain 0's after the first 1-9 digit, so i cannot just have it remove all 0's.


any ideas how to do this?

php

thanks :)
 
Status
Not open for further replies.