array of string last alphabet is equal in php code example Example: get last character of string php substr("testers", -1); // returns "s"