How to remove all leading zeroes in a string

ltrim:

$str = ltrim($str, '0');

(string)((int)"00000234892839")