PHP substr() function
<?php // PHP program to illustrate substr() function Substring($str){ $len = strlen($str); echo substr($str, 8), “\n”; echo substr($str, 5,
Read more<?php // PHP program to illustrate substr() function Substring($str){ $len = strlen($str); echo substr($str, 8), “\n”; echo substr($str, 5,
Read moreget the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring,
Read more