note 19231 added to function.explode

From: Date: Wed, 20 Feb 2002 12:56:17 +0000
Subject: note 19231 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-26839@lists.php.net to get a copy of this message
1. explode of empty strings: you might want to explode a string which may be empty, like $my_params = explode( ",", $values_read_from_file ); don't expect an empty array! you'll get an array with an empty string. Is is a bug or by design? And, why does explode( "", "abc" ) returns FALSE but not ("a", "b", "c") ? -- http://www.php.net/manual/en/function.explode.php http://master.php.net/manage/user-notes.php?action=edit+19231 http://master.php.net/manage/user-notes.php?action=delete+19231 http://master.php.net/manage/user-notes.php?action=reject+19231

« previous php.notes (#26839) next »