Find Jobs
Hire Freelancers

Cartesian Product of multiple arrays associate with existing array php

$10-30 USD

已关闭
已发布大约 5 年前

$10-30 USD

货到付款
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: 19000616

关于此项目

2提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
2威客以平均价$40 USD来参与此工作竞价
用户头像
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天之内
4.8 (49条评论)
5.5
5.5

关于客户

ROMANIA的国旗
Baia Mare, Romania
0.0
0
会员自3月 20, 2019起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。