PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Aug 09, 2020 3:47 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Nov 15, 2005 8:42 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Aug 10, 2004 3:08 am
Posts: 424


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 9:36 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 9:49 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Aug 10, 2004 3:08 am
Posts: 424
Thanks for that!

I created this code:

Syntax: [ Download ] [ Hide ]
$words = explode(" ",$fields[content]);

$words_count = array_count_values($words);

foreach($words_count as $word) {

echo $word[0] . " " . $word[1] . "<br/>";

}


I want it to display the word and the amount of times it is used but this code above wont work...

I then also need it to display the words used the msot times first...

Thanks for your help jshpro2!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 10:50 pm 
Offline
Forum Contributor
User avatar

Joined: Wed Jun 29, 2005 10:04 pm
Posts: 277
Location: Iowa, USA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 3:03 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group