Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
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

RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
. -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

Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
: 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

RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
] 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

Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
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

[PHP] word matrix

2006-03-27 Thread Mike Dunlop
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

Re: [PHP] word matrix

2006-03-27 Thread Chris
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