Jump to content

PHP- combinations


donatastommy

Recommended Posts

 

$array1=["joe","bob"];
$array2=["tom","bill"];
$array3=["dan","mary"];

 

I want to print out every combination.. like (joe,tom,dan),( joe,tom,mary), only picking 1 from each array for each combination. and so on until there are no more combinations.  After this i want to post them onto 3 post forms on my website.. I know how to do that but I am stuck on this combination part.

 

Hard to explain.. hope you have understood..

 

 

Link to comment
https://forums.phpfreaks.com/topic/283351-php-combinations/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.