note 31012 added to function.str-word-count
| From: | philip at cornado dot com | Date: | Mon, 07 Apr 2003 00:30:38 +0000 |
| Subject: | note 31012 added to function.str-word-count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46291@lists.php.net to get a copy of this message | ||
Some ask not just split on ' ', well, it's because simply exploding on a '
' isn't fully accurate. Words can be separated by tabs, newlines, double spaces, etc.
This is why people tend to seperate on all whitespace with regular expressions.
--
http://www.php.net/manual/en/function.str-word-count.php
http://master.php.net/manage/user-notes.php?action=edit+31012
http://master.php.net/manage/user-notes.php?action=delete+31012
http://master.php.net/manage/user-notes.php?action=reject+31012