I have the following strings:
$string="British Airways BAGvpWdLarbvapDA0xYf9B71KVh1ySPSzGycWyiRtYJJ";
and $del_sub_two="KVh1ySPSzGycWyiRtYJJ";
which I use as a delimiter within strings.
When I run: $string=trim($string,$del_sub_two);
the result is:
British Airways BAGvpWdLarbvapDA0xYf9B7
But it should be:
British Airways BAGvpWdLarbvapDA0xYf9B71
I need it to remove the $del_sub_two
string from the end of any particular string, why is it removing an extra character at the end of the string?