this
information is prohibited. If you have received 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
---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
>
> no, just all the unique combinations. Thanks!
>
>
ies
of this transmission.
-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");
der 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:36 AM
> To: Chris
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] word matrix
>
> Sure Chris.
&g
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,wo
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
6 matches
Mail list logo