RE: [PHP] Combo problems.. Multi Array??

From: Date: Mon, 14 Jun 2004 11:34:14 +0000
Subject: RE: [PHP] Combo problems.. Multi Array??
Groups: php.general 
Request: Send a blank email to php-general+get-188207@lists.php.net to get a copy of this message
> -----Original Message----- > From: Michael Benbow [mailto:Michael.Benbow@CeLTS.monash.edu.au] > Sent: 14 June 2004 08:31 > To: php-general@lists.php.net > Subject: [PHP] Combo problems.. Multi Array?? > > > Hi, > > I've got a problem which has left me scratching my head for > the better > part of a week. [...] > The outcome, if working properly, should be... > > A [1][2] B C > A B [1][2] C > A B C [1][2] > A [1] B [2] C > A B [1] C [2] > A [1] B C [2] > A [2] B [1] C > A [2] C C [1] > A B [2] C [1] > > Does anyone have any ideas on how I could do this? As I said I'm > completely stumped. This is called a permutation. Googling for "permutation formula" brings up any number of good links; the most succinct is probably http://www.mathwords.com/p/permutation_formula.htm, but most of the other top 10 links will give you the same answer with a bit (or a lot!) more explanation. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#188207) next »