If I have n number of arrays and all those array have x number of elements ( where x can vary for each array). How can I get all possible combinations of array elements, without repetition and keeping the order maintained. In other words suppose a seller can add multiple attributes for his Clothes like color, size, type, etc and I want all possible combinations for it. How can I get it(preferably in JavaScript or PHP)?
Asked
Active
Viewed 39 times