php get specific part of string code example
Example 1: php nth characters from end of string
$rest = substr("abcdef", -3, 1); // returns 'd'
Example 2: php get part of string
substr ( $string , $start , $length );
/**Returns the extracted part of string;
*or FALSE on failure, or an empty string
*/