SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
$string = "'name', 'name2', 'name3',"; $string = rtrim($string,',');