I’m looking at the function trim but that unfortunately does not remove ‘0’s how do I add that to it? Should I use str_replace?
EDIT: The string I wanted to modify was a message number which looks like this: 00023460
The function ltrim('00023460', '0') does just what I need 🙂 obviously I would not want to use the regular trimbecause it would also remove the ending 0 but since I forgot to add that the answer I got is great 🙂
For the zero padded number in the example: