how to get last 10 characters from string in php code example Example: get last character of string php substr("testers", -1); // returns "s"