note 44019 deleted from function.substr by tomsommer
| From: | tomsommer@php.net | Date: | Mon, 12 Jul 2004 19:54:36 +0000 |
| Subject: | note 44019 deleted from function.substr by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73117@lists.php.net to get a copy of this message | ||
Note Submitter: roelfy @@@ nospam lycos dot NL
----
function grabtext($textje, $searchheadstart, $searchheadend)
{
$posheadstart = strpos($textje, $searchheadstart) + strlen($searchheadstart);
$posheadend = strpos($textje, $searchheadend, $posheadstart);
$headlen=$posheadend-$posheadstart;
$theshit = substr($textje,$posheadstart,$headlen);
return($theshit);
}