Archive for March 28th, 2008

fun with anagrams

<?php define(’WORD_LIST_FILENAME’, ‘/usr/share/dict/words’); class AnagramLookup {     private $lookup;     //  Loads a file with one word per line     private function load_word_list($filename)     {         $lines = file($filename);                     // One word per line         [...]

Posted by Matthew on March 28th, 2008

Filed under php, programming | 1 Comment »