Find All Possible Combination Of An Array In PHP
Today, one of the tasks involved at work required me to solve the problem outlined in the title of this post. For example, given an array of (‘red’, ‘blue’, ‘green’), we want to return the following: Initially my first impression was to use recursive function call, but it turned out …