note 113223 added to function.substr
| From: | nanhe dot kumar at gmail dot com | Date: | Fri, 13 Sep 2013 21:19:14 +0000 |
| Subject: | note 113223 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196257@lists.php.net to get a copy of this message | ||
<?php
$string="NanheKumar";
echo substr($string,0,5); //Nanhe
echo substr($string,5); //Kumar
echo substr($string,-4); //umar
echo substr($string,-4,2); //um
echo substr($string,2,6); //umnheKum
?>
----
Server IP: 69.147.83.199
Probable Submitter: 14.98.118.14
----
Manual Page -- http://php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/113223
Del: integrated -- https://master.php.net/note/delete/113223/integrated
Del: useless -- https://master.php.net/note/delete/113223/useless
Del: bad code -- https://master.php.net/note/delete/113223/bad+code
Del: spam -- https://master.php.net/note/delete/113223/spam
Del: non-english -- https://master.php.net/note/delete/113223/non-english
Del: in docs -- https://master.php.net/note/delete/113223/in+docs
Del: other reasons-- https://master.php.net/note/delete/113223
Reject -- https://master.php.net/note/reject/113223
Search -- https://master.php.net/manage/user-notes.php