PHP: remove 1 character

in PHP i need to delete 1 character from a string eg:

$string1 = “abcde”
$string1 = “abcd”

I was thinking of getting the length of the string and then deleting the last character, but can’t remember of there’s a function in PHP with which i can delete a single character.

any help!!??