Cartesian Product of multiple arrays associate with existing array php

I want to generate a form table with all combinations between attribute and attribute values.

I use possible_combs() - function to generate them

function possible_combos($groups, $prefix='') {

$result = array();

$group = array_shift($groups);

foreach($group as $selected) {

if($groups) {

$result = array_merge($result, possible_combos($groups, $prefix .$selected.', '));

} else {

$result[] = [

'combination_string' => $prefix.$selected,




return $result;


BUT, i want to associate product_id for existing combs.

I want to know the logic behind this, how can i merge or find in comb_string to know when combination has product_id and when i have to create new one by adding product_id - 0.

Taidot: HTML, Javascript, MySQL, PHP, tietojärjestelmäarkkitehtuuri

Näytä lisää: multiple file upload using ajax php java, populate existing pdf php, add product multiple categories oscommerce, cartesian product associative, cartesian product axbxc, infinite cartesian product, php merge array with same values, cartesian product of a set with itself, cartesian product of a vector of vectors without using recursion, cartesian product vs cross product, cartesian product of functions, oscommerce product multiple picture, pho mysql upload product multiple image form, multiple upload progress bar javascript php, screen scrape create array php, scarping data array php, import excel file array php, parse existing website php spider, existing html php, multiple file upload system free php

Tietoa työnantajasta:
( 0 arvostelua ) Baia Mare, Romania

Projektin tunnus: #19000616

2 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Feel fee to contact me forCartesian Product of multiple arrays associate with existing array php .Shoot me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in o Lisää

$30 USD 3 päivässä
(44 arvostelua)

Hi I'm an expert in php programming. I'm sure that I can easily do this project. We can have a about it. Thanks..

$50 USD 1 päivässä
(49 arvostelua)