From b5b882e695727931c4d677783e8a1f592ddb133b Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Thu, 24 Jun 2010 22:07:28 +0000 Subject: [PATCH] Fixed PHP bug #52122 (implode(): No description of return value for degenerate case) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@300736 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/implode.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference/strings/functions/implode.xml b/reference/strings/functions/implode.xml index 9c261efcd3..89c0fb811b 100644 --- a/reference/strings/functions/implode.xml +++ b/reference/strings/functions/implode.xml @@ -102,6 +102,9 @@ $comma_separated = implode(",", $array); echo $comma_separated; // lastname,email,phone +// Empty string when using an empty array: +var_dump(implode('hello', array())); // string(0) "" + ?> ]]>