Answers for "get remove last comma from string in php"

PHP
4

remove last comma from string php

rtrim($my_string, ',');
Posted by: Guest on November-12-2020
0

string remove last two characters php

echo substr($string, 0, -2);
Posted by: Guest on June-29-2021

Code answers related to "get remove last comma from string in php"

Browse Popular Code Answers by Language