Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php substr

<?php
$rest = substr("abcdef", 0, -1);  // "abcde"
$rest = substr("abcdef", 2, -1);  // "cde"
$rest = substr("abcdef", 4, -4);  // false
$rest = substr("abcdef", -3, -1); // "de"
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #substr
ADD COMMENT
Topic
Name
1+3 =