php - How to remove all leading zeroes in a string -
if have string
00020300504 00000234892839 000239074
how can rid of leading zeroes have this
20300504 234892839 239074
note number above generated randomly.
$str = ltrim($str, '0');
if have string
00020300504 00000234892839 000239074
how can rid of leading zeroes have this
20300504 234892839 239074
note number above generated randomly.
$str = ltrim($str, '0');
Comments
Post a Comment