ID: 38337 User updated by: z_rules55 at hotmail dot com Reported By: z_rules55 at hotmail dot com Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment:
My bad. I saw the part where it said "will return an array containing string" and thought that the function would return an actual string. Previous Comments: ------------------------------------------------------------------------ [2006-08-05 01:59:32] [EMAIL PROTECTED] Many functions return FALSE if something goes wrong/data has been exhausted/the function does not find what the developer was looking for. In fact, we'd have to mark a great number of functions in the manual "mixed" if we followed the convention you propose. Instead, we mark return values as the most common case(s), and avoid error situations. See strpos(), each(), mysql_fetch_assoc(), etc. S ------------------------------------------------------------------------ [2006-08-04 22:04:29] z_rules55 at hotmail dot com Description: ------------ explode() is listed as returning an array. However, its documentation states that: -------------- If separator is an empty string (""), explode() will return FALSE. If separator contains a value that is not contained in string, then explode() will return an array containing string. -------------- The return value should therefore be "mixed". ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38337&edit=1