note 19231 rejected from function.explode by alindeman

From: Date: Wed, 20 Feb 2002 13:20:57 +0000
Subject: note 19231 rejected from function.explode by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26841@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") ?

« previous php.notes (#26841) next »