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
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
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
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
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
5 matches
Mail list logo