note 128640 added to function.strstr
| From: | DavidSpector at main dot php dot net | Date: | Mon, 26 Jun 2023 17:48:24 +0000 |
| Subject: | note 128640 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220600@lists.php.net to get a copy of this message | ||
// Find remainder string after a given leftmost prefix, case sensitive
// Returns false if prefix not found or input is ''
// Returns '' if prefix found at end of input
// PHP error if prefix is ''
function After($input,$prefix)
{
$after=strstr($input,$prefix);
return substr($after,strlen($prefix));
} // After
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 98.2.238.89)
----
Manual Page -- https://php.net/manual/en/function.strstr.php
Edit -- https://main.php.net/note/edit/128640
Del: integrated -- https://main.php.net/note/delete/128640/integrated
Del: useless -- https://main.php.net/note/delete/128640/useless
Del: bad code -- https://main.php.net/note/delete/128640/bad+code
Del: spam -- https://main.php.net/note/delete/128640/spam
Del: non-english -- https://main.php.net/note/delete/128640/non-english
Del: in docs -- https://main.php.net/note/delete/128640/in+docs
Del: other reasons-- https://main.php.net/note/delete/128640
Reject -- https://main.php.net/note/reject/128640
Search -- https://main.php.net/manage/user-notes.php