Doc #64303 [NEW]: str_word_count with format = 2
| From: | pierre at geobsd dot com | Date: | Tue, 26 Feb 2013 13:13:46 +0000 |
| Subject: | Doc #64303 [NEW]: str_word_count with format = 2 | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9583@lists.php.net to get a copy of this message | ||
From: pierre at geobsd dot com
Operating system: FreeBSD
PHP version: 5.4.12
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:str_word_count with format = 2
Description:
------------
---
From manual page:
http://www.php.net/function.str-word-count#refsect1-function.str-word-count-parameters
---
$str = "Hello friend, you're
looking good today!";
print_r(str_word_count($str, 2);
Thanks to the doc, "str_word_count" will return an associative array where
the key is the numeric position of the word inside the string and the value
is the actual word itself.
Yes, this function returns an associative array but the key is the numeric
position of the First Letter of the word.
--
Edit bug report at https://bugs.php.net/bug.php?id=64303&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64303&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64303&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64303&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64303&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64303&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64303&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64303&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64303&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64303&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64303&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64303&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64303&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64303&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64303&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64303&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64303&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64303&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64303&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64303&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64303&r=mysqlcfg