select 8th character from the end of a string in php code example
Example 1: php nth characters from end of string
$rest = substr("abcdef", -3, 1); // returns 'd'
Example 2: only display part of string php
substr('abcdef', 1); // bcdef
substr('abcdef', 1, 3); // bcd
substr('abcdef', 0, 8); // abcdef
substr('abcdef', -1, 1); // f