php remove last character in string
snippet in php

php remove last character in string

user3741

//Remove the last character using substr
$string = substr($string, 0, -1);