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