I need to get all combinations of array.
Example:
array
(
array("a","b"),
array("1","2","3","4")
);
And i need to get
array
(
array("a","1"),
array("a","2"),
array("a","3"),
array("a","4"),
array("b","1"),
array("b","2"),
array("b","3"),
array("b","4"),
);
Of course it must work when sizeof($array) >= 2.
Thanks much
精彩评论