how to get the last two digits in years php code example Example: get last character of string php substr("testers", -1); // returns "s"