substr($String, 3, -5) (4) : Sub string « String « PHP






substr($String, 3, -5) (4)

<?
$alphabet_test = "abcdefghijklmnop";

print("3, -5: " . substr($alphabet_test, 3, -5));

?>

           
       








Related examples in the same category

1.Substring replace
2.Substring count
3.substr($String, -3)
4.substr($String, 3, 5)
5.substr($String, -3, 5) (2)
6.substr($String, -3, -5) (3)
7.substr($string, 3)
8.Extracting Part of a String with substr()