Hi
In order to remove the trailing ", " from a string I have this line of code:
$toRemove = ', ';
$myString = substr($myString, 0, strlen($myString)-strlen($toRemove));
It seems pretty clumsy though. Is there a better way of removing a trailing string from another string?
Cheers
Fergus