From 3dce855d99d72b42ae3620b901aff02f83e7f637 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sun, 13 Apr 2014 22:20:23 +0000 Subject: [PATCH] Updated Countable::count([$mode]) to reflect newest changes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333311 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl/countable/count.xml | 43 +++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/reference/spl/countable/count.xml b/reference/spl/countable/count.xml index 45ccbaae35..d176888ed2 100644 --- a/reference/spl/countable/count.xml +++ b/reference/spl/countable/count.xml @@ -11,7 +11,7 @@ &reftitle.description; abstract public intCountable::count - + intmodeCOUNT_NORMAL This method is executed when using the count function on an @@ -21,7 +21,22 @@ &reftitle.parameters; - &no.function.parameters; + + + + mode + + + The optional mode parameter will be set to + COUNT_NORMAL or COUNT_RECURSIVE, depending + on what value was passed to the second parameter of count. + This is particularly useful for counting all the elements of + a multidimensional array/Countable combination. + + + + + @@ -36,6 +51,30 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.6 + + The optional mode parameter was added. + + + + + + + + &reftitle.examples;