How to get the last character of a string in PHP? code example Example: get last character of string php substr("testers", -1); // returns "s"