Answers for "php if last characther is space remove"

PHP
0

php remove last character from string if comma

$string = rtrim($string, ',');
Posted by: Guest on June-24-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 "php if last characther is space remove"

Browse Popular Code Answers by Language