I am stuck at one place where I have 3 arrays as below:\[code\]$c = array("red","green","blue");$s = array("12","13","14");$l = array("3","4","5");\[/code\]Based on this array I need arrays like:\[code\]$one = array("red", "12", "3");$two = array("red", "12", "4");$three = array("red", "12", "5");$three = array("red", "13", "3");...........\[/code\]Same I need to create array which include all combinations of above 3 arrays.I have tried to create by looping through all, but can anyone tell me a better solution or existing php function for this.