note 75368 deleted from function.explode by nlopess
| From: | nlopess@php.net | Date: | Sun, 27 May 2007 19:00:23 +0000 |
| Subject: | note 75368 deleted from function.explode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126959@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