Possible Duplicate:
PHP - Remove last character if it's a period?
Which is fastest way to remove last character from string?
I have a string like
a,b,c,d,e,
I would like to remove last ',' and get the remaining string back
OUTPUT: a,b,c,d,e
What the fastest way to do this?
转载于:https://stackoverflow.com/questions/5592994/remove-the-last-character-from-string