Get or Remove the Last Char in Strings in PHP
PHP function substr() allows manipulating a string for the rear. The function is defined as below. It returns the portion of string specified by the start and length parameters. If start is negative, the starting position is counted from the …