php 7.4 get last word of string code example Example: get last character of string php substr("testers", -1); // returns "s"