Answers for "php cut last words"

PHP
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
0

php string remove last character

substr(string $string, int $start, int[optional] $length=null);
Posted by: Guest on April-20-2021

Browse Popular Code Answers by Language