From 89e45ccb615db00cb4275565fc91eba6fe085788 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Tue, 21 Apr 2009 14:05:32 +0000 Subject: [PATCH] #48035 explode() returns empty array if delimiter not found and limit is negative git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279116 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/explode.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 3194a81796..ba418ed612 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -1,5 +1,5 @@ - + explode @@ -73,10 +73,12 @@ &reftitle.returnvalues; If delimiter is an empty string (""), - explode will return &false;. If - delimiter contains a value that is not contained - in string, then explode will - return an array containing string. + explode will return &false;. + If delimiter contains a value that is not + contained in string and a negative + limit is used, then an empty array will be + returned. For any other limit, an array containing + string will be returned.