Login   Register  
PHP Classes
elePHPant
Icontem

Combination Class: Generate combinations of an array of values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 396 This week: 1All time: 5,945 This week: 1,432Up
Version License PHP version Categories  
combination-class 1.0GNU General Public Lice...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: 88019 in Turkey Turkey
Week rank: 601 Up12 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:396All time:5,945
 This week:1This week:1,432Up