get the last 7 characters of a PHP string

get the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring, -7); string substr ( string $string , int $start [, int $length ] ) If start is negative, the returned string will start at the start’th character from the end of string Example: <?php echo … Read more

Eduguru : Online Tutorial

Eduguru is Online Web tutorial aiming to support and provide the easiest way to learn computer and programming language and make them aware about new technologies. EduGuru.in is also a web developer information website, with tutorials and references relating to web development topics such as HTML, CSS, JavaScript, PHP, and SQL. http://EduGuru.in