Want to remove all 0
placed at the beginning of some variable.
Some options:
- if
$var = 0002
, we should strip first000
($var = 2
) - if
var = 0203410
we should remove first0
($var = 203410
) - if
var = 20000
- do nothing ($var = 20000
)
What is the solution?