How do I remove characters till there comes another character in a string?
For example:
String is this: 0030051
Now I want to remove ALL 0
's before another character (like: 1
) comes.
So the string will become this: 30051
.
Is there a PHP function for this or is this easier with Javascript/jQuery ? (I'd prefer PHP)