note 37911 added to function.substr
| From: | manoutas at rn2 dot php dot net | Date: | Tue, 02 Dec 2003 02:02:17 +0000 |
| Subject: | note 37911 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61243@lists.php.net to get a copy of this message | ||
/*********************************************************************
* This function returns a new string of the string you send inn. *
* You have just to specify where you want the string to start & end *
* substrpos(string,stringstart,stringend); *
*********************************************************************/
function substrpos($str, $start , $end){
$lenStr= strpos($str,$end) -strpos($str, $start);
return substr($str, strpos($str,$start), $lenStr);
}
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37911
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37911&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37911&report=yes
Search -- http://master.php.net/manage/user-notes.php