trim comma from variable in php
snippet in php

trim comma from variable in php

user1546

rtrim($my_string,',');