Is there a way to limit exactly what ltrim removes in PHP.
I had a the following outcome:
$str = \"axxMyString\"; $newStr = ltrim($str, \"ax\"); // resu
The second parameter species each character that will be trimmed. Because you defined both a and x the first the letters got removed from your string.
a
x
Just do:
$newStr = ltrim($str, "a");
and you should be fine.