Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove last character in string

//Remove the last character using substr
$string = substr($string, 0, -1);
 
PREVIOUS NEXT
Tagged: #php #remove #character #string
ADD COMMENT
Topic
Name
4+8 =