Answers for "trim string from last add ... php"

PHP
4

remove last comma from string php

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

php string remove last character

echo substr('a,b,c,d,e,', 0, -1);
# => 'a,b,c,d,e'
Posted by: Guest on April-20-2021

Code answers related to "trim string from last add ... php"

Browse Popular Code Answers by Language