Skip to content

Instantly share code, notes, and snippets.

View veloxy's full-sized avatar
🤷‍♂️
What's happening?

Kevin Vandenborne veloxy

🤷‍♂️
What's happening?
View GitHub Profile
@veloxy
veloxy / Generate Combinations
Created November 8, 2011 20:07
Generate Combinations
<?php
function array_outer($f, array $array1) {
$res = array();
$arrays = $array1;
foreach ($arrays as $a) {
if (empty($a))
return $res;
}