Re: Divide into words
| From: | Sean Burlington | Date: | Tue, 17 Dec 2002 11:30:14 +0000 |
| Subject: | Re: Divide into words | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128537@lists.php.net to get a copy of this message | ||
oops :(how about ... <? $sentance = "Today is a beautiful day. "; $temp = preg_replace("/[^a-zA-Z]+/", " ", $sentance); $temp = explode(' ', $temp); $words = array_count_values($temp); print_r($words);Nope. The question was the position of the words, not how many times they appear.