Tips
Retrieve a substring from the end in PHP

To extract a substring from the end of a string using PHP's mb_substr function, specify the length of the target string minus the length of the substring as the extraction start position.

Read more

photo by:Justin Kauffman