I have one associative array as follows:
{
"organizations":[
{
"name":"10sheet",
"owner_name":"Me"
},
{
"name":"12Gigs",
"owner_name":"Me"
},
"name":"24\/7 Card",
"owner_name":"Me as well"
},
}
I want to search using the name field in this first array against the name field in the following associative array:
[{"name": "Wetpaint",
"permalink": "wetpaint",
"category_code": "web"},
{"name": "AdventNet",
"permalink": "adventnet",
"category_code": "enterprise"},
{"name": "Zoho",
"permalink": "zoho",
"category_code": "software"},
{"name": "Digg",
"permalink": "digg",
"category_code": "web"},
{"name": "24/7 Card",
"permalink": "247-card",
"category_code": "other"}]
If there is a match take the value in the permalink field and put it into a new array. Also, in the first array there are escaping issues such as the 24/7 instead of 24/7 and the search should not be case sensitive. I'm trying to write this in PHP and working with these two APIs is killing me.
Thanks for your help!
-Greg