note 76101 added to function.substr
| From: | Eric at osu1 dot php dot net | Date: | Sat, 30 Jun 2007 00:26:18 +0000 |
| Subject: | note 76101 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128102@lists.php.net to get a copy of this message | ||
<?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!
----
Server IP: 69.147.83.197
Probable Submitter: 67.93.59.24
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/76101
Del: integrated -- https://master.php.net/note/delete/76101/integrated
Del: useless -- https://master.php.net/note/delete/76101/useless
Del: bad code -- https://master.php.net/note/delete/76101/bad+code
Del: spam -- https://master.php.net/note/delete/76101/spam
Del: non-english -- https://master.php.net/note/delete/76101/non-english
Del: in docs -- https://master.php.net/note/delete/76101/in+docs
Del: other reasons-- https://master.php.net/note/delete/76101
Reject -- https://master.php.net/note/reject/76101
Search -- https://master.php.net/manage/user-notes.php