note 75367 deleted from function.explode by tularis
| From: | tularis@php.net | Date: | Mon, 27 Oct 2008 13:05:53 +0000 |
| Subject: | note 75367 deleted from function.explode by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145820@lists.php.net to get a copy of this message | ||
Note Submitter: IanB
----
@ tobylewis
No, it should not return a null array! The description clearly states: If delimiter contains a value
that is not contained in string, then explode() will return an array containing string.
So it returns an array containing the original (empty) string.
Wouldn't you test for an invalid email address before trying to mail to it anyway? :S