Tag Archives: rtrim() in php

Removing last comma in a string – PHP

Hi Guys, Here I am going to share how to remove the last comma in a string by using php function. The rtrim() function will helps you to remove whitespaces or other predefined character from the right side of a string. Syntax rtrim(string,charlist) Parameter Description charlist Optional. Specifies which characters to remove from the string.… Read More »