note 75367 added to function.explode
| From: | IanB at osu1 dot php dot net | Date: | Fri, 25 May 2007 14:49:28 +0000 |
| Subject: | note 75367 added to function.explode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126899@lists.php.net to get a copy of this message | ||
@ 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
----
Server IP: 194.145.210.4
Probable Submitter: 86.7.246.8
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- https://master.php.net/note/edit/75367
Del: integrated -- https://master.php.net/note/delete/75367/integrated
Del: useless -- https://master.php.net/note/delete/75367/useless
Del: bad code -- https://master.php.net/note/delete/75367/bad+code
Del: spam -- https://master.php.net/note/delete/75367/spam
Del: non-english -- https://master.php.net/note/delete/75367/non-english
Del: in docs -- https://master.php.net/note/delete/75367/in+docs
Del: other reasons-- https://master.php.net/note/delete/75367
Reject -- https://master.php.net/note/reject/75367
Search -- https://master.php.net/manage/user-notes.php