get last character of string php
snippet in php

get last character of string php

user8239

substr("testers", -1); // returns "s"