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.

Kemahiran: HTML, Javascript, MySQL, PHP, Kejuruteraan Perisian

Lihat lagi: 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

Tentang Majikan:
( 0 ulasan ) Baia Mare, Romania

ID Projek: #19000616

2 pekerja bebas membida secara purata $40 untuk pekerjaan ini


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 Lagi

$30 USD dalam 3 hari
(44 Ulasan)

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 dalam sehari
(49 Ulasan)