Find Jobs
Hire Freelancers

php dynamic array intersect - repost

$2-8 USD / hour

Cancelled
Posted almost 11 years ago

$2-8 USD / hour

Hi, I have some dynamically generated arrays $resultfull = $db2->fetchAll(); ${'unique_tags'.$unique_tags0_key}=Array(); foreach ($resultfull as $values2) { list($tagname,$id)=$values2; array_push(${'unique_tags'.$unique_tags0_key}, $id); } $unique_tags0_key=$unique_tags0_key+1; } and i want to intersect them. I want to use string as arguments in php array intersect function $result00=array_intersect($unique_tags0, $unique_tags1); i want to replace the above with something like $one="$unique_tags0, $unique_tags1, $unique_tags2 ....."; $result00=array_intersect($one); $one is string but dynamically has the names of existing arrays. The number of the arrays i want to intersect is not known, so i want to use dynamically generated string as argument, if this is possible. 5$ should be ok for helping me on this. I m waiting for replies PS, Please bid if you have done it before.
Project ID: 4605031

About the project

2 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $30 USD/hour for this job
User Avatar
You should instead create an array of $unique_tags[] and use call_user_func_array()
$4 USD in 3 days
5.0 (3 reviews)
3.6
3.6
User Avatar
Nice project
$55 USD in 10 days
2.8 (6 reviews)
4.7
4.7

About the client

Flag of GREECE
AGIOS DIMITRIOS, Greece
4.8
11
Payment method verified
Member since Sep 29, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.