To get the last character of a given string in PHP is made very, very simple thanks to the plain old vanilla substring (substr) function....