PHP

Getting last chars with substr() function

echo substr('abcdef', -1, 1); // f

Post a comment