#43725 [Opn->Bgs]: Error in description of str_word_count
| From: | felipe@php.net | Date: | Wed, 02 Jan 2008 12:16:33 +0000 |
| Subject: | #43725 [Opn->Bgs]: Error in description of str_word_count | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-405@lists.php.net to get a copy of this message | ||
ID: 43725
Updated by: felipe@php.net
Reported By: stanleyshapiro at yahoo dot ie
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
<?php
$str = "Hello fri3nd, you're
looking good today!";
print_r(str_word_count($str, 0)); // 7
?>
Works fine.
Previous Comments:
------------------------------------------------------------------------
[2008-01-02 03:47:36] stanleyshapiro at yahoo dot ie
Description:
------------
In the Description paragraph it states:
"If the optional format is not specified, then the return value will
be an integer representing the number of words found." This is
correct.
But in the 'format' parameter paragraph it states:
Specify the return value of this function. The current supported
values are:
* 0 - returns the number of words found
........
This is wrong. The value 0 is invalid.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43725&edit=1