Php – Accumulate all combinations of a subset of numbers from a flat array to generate a 2d array of combinations and their product
I have a function that takes randomly take 4 unique numbers from an array and multiply them. Problem with the script below is it only print out the products. I would like for each set of 4 numbers and its…