Find Jobs
Hire Freelancers

Cartesian Product of multiple arrays associate with existing array php

$10-30 USD

Mbyllur
Postuar about 5 years ago

$10-30 USD

Paguhet në dorëzim
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.
ID e Projektit: 19000616

Rreth projektit

2 propozime
Projekt në distancë
Aktive 5 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
2 freelancers are bidding on average $40 USD for this job
Avatari i Përdoruesit
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 në 1 ditë
4,8 (49 përshtypje)
5,5
5,5

Rreth klientit

Flamuri i ROMANIA
Baia Mare, Romania
0,0
0
Anëtar që nga mar 20, 2019

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.