Vote count:
0
I have an array with all contacts and I have an array with all groups.
E.g.
Array groups:
array(2) {
[0]=>
array(3) {
["value"]=>
string(87) "http://ift.tt/1uaKvpR"
["name"]=>
string(4) "Family"
["label"]=>
string(4) "Family"
}
[1]=>
array(3) {
["value"]=>
string(87) "http://ift.tt/XERU2f"
["name"]=>
string(7) "YouTube"
["label"]=>
string(7) "YouTube"
}
}
Array Contacts:
array(250) {
[0]=>
array(8) {
["value"]=>
string(15) "X Y"
["name"]=>
string(15) "X Y"
["email"]=>
string(25) "blabla@gmail.com"
["phone"]=>
string(10) "044564"
["group"]=>
string(87) "http://ift.tt/XERU2f"
["phonework"]=>
string(10) "0479//804"
["address"]=>
string(28) "55222 City"
["label"]=>
string(15) "Bla"
}
......
}
How can I replace http://ift.tt/1uaKvpT**/base/3166d58a8c**25 with the group name YouTube in the contact array?
asked 1 min ago
relationship between 2 arrays
Aucun commentaire:
Enregistrer un commentaire