I need a function that will return all possible combinations for a multi-dimensional array. For example,
$elements = array();
$elements[] = array(11,12,13);
$elements[] = array(14,15,16);
$elements[] = array(17,18,19);
I need the function to return an array that looks this this:
$arrReturn = array(
0 => array(11,14,17),
1 => array(11,14,18),
2 => array(11,14,19),
3 => array(11,15,17),
4 => array(11,15,18) ... etc
$