Re: [PHP] word matrix

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

RE: [PHP] word matrix

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

Re: [PHP] word matrix

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

RE: [PHP] word matrix

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

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,wo

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