note 117530 added to function.strstr
| From: | trent dot renshaw at objectst dot com dot au | Date: | Thu, 25 Jun 2015 02:08:16 +0000 |
| Subject: | note 117530 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202944@lists.php.net to get a copy of this message | ||
> root at mantoru dot de
PHP makes this easy for you. When working with domain portion of email addresses, simply pass the
return of strstr() to substr() and start at 1:
substr(strstr($haystack, '@'), 1);
----
Server IP: 72.52.91.14
Probable Submitter: 59.100.202.46
----
Manual Page -- http://php.net/manual/en/function.strstr.php
Edit -- https://master.php.net/note/edit/117530
Del: integrated -- https://master.php.net/note/delete/117530/integrated
Del: useless -- https://master.php.net/note/delete/117530/useless
Del: bad code -- https://master.php.net/note/delete/117530/bad+code
Del: spam -- https://master.php.net/note/delete/117530/spam
Del: non-english -- https://master.php.net/note/delete/117530/non-english
Del: in docs -- https://master.php.net/note/delete/117530/in+docs
Del: other reasons-- https://master.php.net/note/delete/117530
Reject -- https://master.php.net/note/reject/117530
Search -- https://master.php.net/manage/user-notes.php