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.

Compétences : HTML, Javascript, MySQL, PHP, Architecture Logicielle

en voir plus : 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

Concernant l'employeur :
( 0 commentaires ) Baia Mare, Romania

Nº du projet : #19000616

2 freelance font une offre moyenne de $40 pour ce travail


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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(44 Commentaires)

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..

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(49 Commentaires)