Hello all,
i have an array named $checked;
$checked[0] = 1;
$checked[1] = 3;
$checked[2] = 4;
$checked[3] = 6;
$checked[4] = 7;
i want to make combinations like
array index
0 1 2 3 means $checked[0]; $checked[1]; $checked[2]; $checked[3];
0 1 2 4
0 1 3 4
0 2 3 4
1 2 3 4
. . . .
like this manner. it should find all the possible combinations.
here i said the sizeof array is five. but it may be 7 , 8 or 3 . if the size of array is 'n' then i want combinations in size of 'n-1' .
is it possible? please help me.
Thank you,