Archive for June 3rd, 2009
I before E except after C…
I before E (yuccamuffin.com)
<?php
$words = file(’/usr/share/dict/words’);
$words = array_map(’trim’, $words);
// Ignore words with any punctuation
$words = array_filter($words, ‘ctype_alpha’);
foreach($words as $word)
{
// ignore proper nouns (they start with an uppercase letter)
if(ctype_upper($word[0]))
[...]