PHP Classes

Combination Class: Generate combinations of an array of values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 409 This week: 1All time: 5,905 This week: 1,485Up
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
Name: Ovunc Tukenmez <contact>
Classes: 9 packages by
Country: Turkey Turkey
Age: 28
All time rank: 88220 in Turkey Turkey
Week rank: 478 Up7 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:409All time:5,905
 This week:1This week:1,485Up