PHP – All Combinations Between Array Elements
OK, this is what I need to solve. Given an array of the following elements: I want to get the following combinations: It is quite obvious that I will need a recursive function to do this, but it is not straightforward to start writing the function straightaway. With the hope …