Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php substr

<?php
$rest = substr("abcdef", -1);    // returns "f"
$rest = substr("abcdef", -2);    // returns "ef"
$rest = substr("abcdef", -3, 1); // returns "d"
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #substr
ADD COMMENT
Topic
Name
7+3 =