I've just tested the following code:
echo ltrim('1-120', "1-");
I would expect this to echo out 120 however the output is 20. Rather than 120 that I would expect.
Like wise if I run echo ltrim('1-11120', "1-");
then 20 is still the output. Rather than 1120.
I have updated my code to use str_replace. So my question is more to improve my understanding why I am getting this output.
From looking on https://www.php.net/manual/en/function.ltrim.php The -
is not listed in the charter section. Is this possibly a bug?