thanks, now I just have to plod through your code and figure it out.

David


[EMAIL PROTECTED] wrote:                               ----- Original Message 
----- 
 From: "David Gresser" <[EMAIL PROTECTED]>
 To: <[email protected]>
 Sent: Tuesday, September 11, 2007 9:29 AM
 Subject: Re: [php-list] permutations
 
 Thanks. I would like to get it so that duplicates like  david - dianne   and 
 dianne - david  were elminated so for say a list of three names:
 
 david
 dianne
 phillip
 
 I would only end up with 3 pairs
 
 david dianne
 david phillip
 dianne phillip
 
 ----------------------------------
 This code removes the permutations that you mentioned and should yield the 
 results you want.
 
 items > results
 0 > 0
 1 > 0
 2 > 1
 3 > 3
 4 > 6
 5 > 10
 etc 
 
 
     
                               


[Non-text portions of this message have been removed]

Reply via email to