If I have a string
00020300504 00000234892839 000239074
how can I get rid of the leading zeroes so that I will only have this
Im Fixed with this way.
its very simple. only pass a string its remove zero start of string.
function removeZeroString($str='') { while(trim(substr($str,0,1)) === '0') { $str = ltrim($str,'0'); } return $str; }