From d71304cb7c8e54597aa217dff85b198216ff9180 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Thu, 2 Apr 2009 09:24:07 +0000 Subject: [PATCH] Remove default value for limit and document zero limit. Bug #47546, #47727 and related to #47560 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278167 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/explode.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 9200cee632..3194a81796 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -1,5 +1,5 @@ - + explode @@ -12,7 +12,7 @@ arrayexplode stringdelimiter stringstring - intlimit-1 + intlimit Returns an array of strings, each of which is a substring of @@ -45,7 +45,7 @@ limit - If limit is set, the returned array will contain + If limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. @@ -53,6 +53,9 @@ If the limit parameter is negative, all components except the last -limit are returned. + + If the limit parameter is zero, then this is treated as 1. +