Zend certified PHP/Magento developer

word is contained most frequently in other words

the parameter here is a filename! The file contains a text. The task of the script is to decide which word is contained most frequently in other words.

(e.g. the text is: play ball football basketball snowball – therefore ball is the winner because it is part of three other worlds).