How do I remove a comma off the end of a string? June 19, 2022 by Tarik $string = rtrim($string, ','); Docs for rtrim here