note 128641 added to function.stristr
| From: | DavidSpector at main dot php dot net | Date: | Mon, 26 Jun 2023 17:51:03 +0000 |
| Subject: | note 128641 added to function.stristr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220601@lists.php.net to get a copy of this message | ||
// Find remainder string after a given prefix, case insensitive
// 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=stristr($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.stristr.php
Edit -- https://main.php.net/note/edit/128641
Del: integrated -- https://main.php.net/note/delete/128641/integrated
Del: useless -- https://main.php.net/note/delete/128641/useless
Del: bad code -- https://main.php.net/note/delete/128641/bad+code
Del: spam -- https://main.php.net/note/delete/128641/spam
Del: non-english -- https://main.php.net/note/delete/128641/non-english
Del: in docs -- https://main.php.net/note/delete/128641/in+docs
Del: other reasons-- https://main.php.net/note/delete/128641
Reject -- https://main.php.net/note/reject/128641
Search -- https://main.php.net/manage/user-notes.php