I have a array which represent allowed value in a key. The length of this array is dynamic
array(
10=>array(100,101,102),
11=>array(100,104),
12=>array(100,102,103)
)
in this exemple, key 10 can have 100, 101 and 102.
I want to get all valid combination where each value appear only one time
array(
array(10=>array(100,101,102),11=>array(104),12=>array(103)),
array(10=>array(100,101),10=>array(104),12=>array(102,103)),
array(10=>array(101),10=>array(100,104),12=>array(102,103)),
array(10=>array(101),10=>array(104),12=>array(100,102,103)),
AND SO ON
)