Sure Chris.
$words = array(word1,word2,word3);
I want this:
$result = array(
word1,
word2,
word3,
word1 word2,
word1 word3,
word2 word1,
word2 word3,
word3 word1,
word3 word2,
word1,word2,word3
);
Thanks - MD
.
-Original Message-
From: Mike Dunlop [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 11:36 AM
To: Chris
Cc: php-general@lists.php.net
Subject: Re: [PHP] word matrix
Sure Chris.
$words = array(word1,word2,word3);
I want this:
$result = array(
word1
: Mike Dunlop [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 11:36 AM
To: Chris
Cc: php-general@lists.php.net
Subject: Re: [PHP] word matrix
Sure Chris.
$words = array(word1,word2,word3);
I want this:
$result = array(
word1,
word2,
word3,
word1 word2
]
Sent: Tuesday, March 28, 2006 11:57 AM
To: Shaunak Kashyap
Cc: php-general@lists.php.net
Subject: Re: [PHP] word matrix
no, just all the unique combinations. Thanks!
...
Mike Dunlop
Director of Technology Development
[ e
this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.
-Original Message-
From: Mike Dunlop [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 11:57 AM
To: Shaunak Kashyap
Cc: php-general@lists.php.net
Subject: Re: [PHP] word matrix
i have an array of various words and am looking to create a result
array of every possible combination of words from the orig array. I'm
not sure how to accomplish this elegantly within a for loop. Anyone
have any ideas?
Thanks - Mike D
Mike Dunlop wrote:
i have an array of various words and am looking to create a result
array of every possible combination of words from the orig array. I'm
not sure how to accomplish this elegantly within a for loop. Anyone
have any ideas?
Could you post a sample of what you have and what
7 matches
Mail list logo