how to substring a string in php code example
Example 1: get last character of string php
substr("testers", -1); // returns "s"
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
*/