note 26689 deleted from function.strstr by nlopess
| From: | nlopess@php.net | Date: | Fri, 05 Jan 2007 20:34:58 +0000 |
| Subject: | note 26689 deleted from function.strstr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121342@lists.php.net to get a copy of this message | ||
Note Submitter: fred at debilitron dot com
----
The same thing as above, but a bit shorter, with strpos() :
$string = "email@domain.net";
$separat = "@";
$string = substr($string, 0, strpos($string,$separat));