Hi I need to find the number of occurence of each word in a string. Can anybody tell me how to do that? For ex, "php is the only substitute for php" should return php-2 is-1 the-1 substitute-1 etc Any idea?
check this solution http://forums.digitalpoint.com/showthread.php?t=645276 edit it to get your needs ...