SyntaxFix
Write A Post
Hire A Developer
Questions
You can use substr:
substr
echo substr('a,b,c,d,e,', 0, -1); # => 'a,b,c,d,e'