in reply to last character in string ?

Or you could use substr($string, 0, -1)