PHP Classes

Combination Class: Generate combinations of an array of values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 518 All time: 5,724 This week: 40Up
Version License PHP version Categories
combination-class 1.0.0GNU General Publi...5.5Algorithms, PHP 5
Collaborate with this project 

Author

Combinations - github.com

Description

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: 14 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files (3)  
File Role Description
Plain text file Combinations.php Class Class source
Accessible without login Plain text file example.php Example example script (for all values)
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:518
This week:0
All time:5,724
This week:40Up