in reply to Last Letters

My day for playing with substr
substr($string, -5, 4);
Negative numbers count from the end of the string for position. Note that this only works if you have a 4 digit number with another character on the end.