PHP Classes
elePHPant
Icontem

Combination Class: Generate combinations of an array of values

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-12-03 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 437 This week: 1All time: 5,923 This week: 887Up
Version License PHP version Categories
combination-class 1.0GNU General Publi...5Algorithms, PHP 5
Description Author

This class can be used to generate combinations of an array of values.

It takes an array of values and generates all possible combinations of those values including permutation of order of the values.

The class can be configured to only get unique combinations, i.e. identical combinations of values are not generated.

Picture of Ovunc Tukenmez
  Performance   Level  
Name: Ovunc Tukenmez <contact>
Classes: 10 packages by
Country: Turkey Turkey
Age: 30
All time rank: 84117 in Turkey Turkey
Week rank: 181 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file CombinationClass.php Class base class
Accessible without login Plain text file example.php Example example script (for all values)
Accessible without login Plain text file returned_array.html Output sample returned array (for a values array("a", "b"))

 Version Control Unique User Downloads Download Rankings  
 0%
Total:437
This week:1
All time:5,923
This week:887Up