hoq ot comma remove in string using php code example Example: trim comma from variable in php rtrim($my_string,',');