note 76101 deleted from function.substr by nlopess
| From: | nlopess@php.net | Date: | Fri, 13 Jul 2007 19:06:40 +0000 |
| Subject: | note 76101 deleted from function.substr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128451@lists.php.net to get a copy of this message | ||
Note Submitter: Eric
----
<?php
$site = "http://www.hendersonpoolservice.info";
$text = "welcome to my website";
echo substr($text, 3) ; //returns "come to my website"
echo "<BR>";
echo substr($text, 3, 6); //returns "come t"
echo "<BR>";
echo substr($text, -4); //returns "site"
?>
this is an example of basic usage!