Answers for "remove first and last character from string php by slas"

PHP
5

php remove last character from string

$hell = substr('hello', 0, -1);
Posted by: Guest on November-04-2019
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 "remove first and last character from string php by slas"

Browse Popular Code Answers by Language