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: 422 All time: 5,879 This week: 1,031Up
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: 29
All time rank: 88020 in Turkey Turkey
Week rank: 635 Up14 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:422All time:5,879
 This week:0This week:1,031Up