remove last comma from string php
snippet in php

remove last comma from string php

user1233

rtrim($my_string, ',');