Lukket

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.

Evner: HTML, Javascript, MySQL, PHP, Software Arkitektur

Se mere: 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

Om arbejdsgiveren:
( 0 bedømmelser ) Baia Mare, Romania

Projekt ID: #19000616

2 freelancere byder i gennemsnit $40 på dette job

RushService

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 Flere

$30 USD in 3 dage
(44 bedømmelser)
5.9
utkarshkatiyar19

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 på 1 dag
(49 bedømmelser)
5.5