Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread nayco
David Otton <[EMAIL PROTECTED]> To: Ralph Guzman <[EMAIL PROTECTED]> Cc: PHP General Mailing List <[EMAIL PROTECTED]> Sent: Tuesday, September 11, 2001 2:32 PM Subject: Re: [PHP] Anagram Solution in PHP > On Mon, 10 Sep 2001 01:25:36 -0700, you wrote: > > >So let&#x

Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread David Otton
On Mon, 10 Sep 2001 01:25:36 -0700, you wrote: >So let's say the word 'acronym' > >A + C + R + 0 + N + Y + M >26 + 24 + 9 + 12 + 13 + 2 + 14 = 100 > >My thoughts were to download a list of words in the dictionary, then read >the file and somehow replace each letter by its number, then add ea

Re: [PHP] Anagram Solution in PHP

2001-09-10 Thread nayco
lode(" ",$line); while (list($foo,$word)=each($words)) { $word_value=0; for ($car=0;$car$word on line $line_value of the input file has a value of $word_value.\n"; } } echo "\nIf nothing appears above, no

RE: [PHP] Anagram Solution in PHP

2001-09-10 Thread Seb Frost
26 To: PHP General Mailing List Subject: [PHP] Anagram Solution in PHP Im trying to figue out the following anagram using PHP. Here is the problem: Using letters of the alphabet represented by a number, I have to come up with words that add up to exactly 100. Numbers are in reverse where A=26 a

[PHP] Anagram Solution in PHP

2001-09-10 Thread Ralph Guzman
Im trying to figue out the following anagram using PHP. Here is the problem: Using letters of the alphabet represented by a number, I have to come up with words that add up to exactly 100. Numbers are in reverse where A=26 and Z=1, so for example: A B C...X Y Z 26 25 24..3 2 1 So let's s