Answers for "php remove last break line"

PHP
1

php remove last newline from string

$string = rtrim($string_to_remove);
Posted by: Guest on June-24-2021
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

Browse Popular Code Answers by Language