2017 © Pedro Peláez
 

library multicombinator

generate all combinations of multiple arrays

image

lucianmariusadam/multicombinator

generate all combinations of multiple arrays

  • Friday, September 18, 2015
  • by lucianmariusadam
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16,967 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

MultiCombinator

Generates all combination of multiple arrays. Can be used as an iterator using methods like next(), rewind()., (*1)

Given two arrays, the following code:, (*2)

$lists = [ 'a' => [ 'A', 'B', 'C' ], 'b' => [ 'A', 'B', 'C' ] ], (*3)

$c = new MultiCombinator( $lists ); print_r( $c->getAll() );, (*4)

prints an array containing the following combinations: A A A B A C, (*5)

B A B B B C, (*6)

C A C B C C, (*7)

The Versions

18/09 2015

dev-master

9999999-dev

generate all combinations of multiple arrays

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Lucian Marius Adam

math combinatorics combinations touple

18/09 2015

v1.0.2

1.0.2.0

generate all combinations of multiple arrays

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Lucian Marius Adam

math combinatorics combinations touple

02/09 2015

v1.0.1

1.0.1.0

generate all combinations of multiple arrays

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Lucian Marius Adam

math combinatorics combinations touple

17/08 2015

v1.0.0

1.0.0.0

generate all combinations of multiple arrays

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Lucian Marius Adam

math combinatorics combinations touple