I have an array named $mark_ary which contains this:
Array
(
[0] => 61
[1] => 62
[2] => 63
[3] => 64
[4] => 65
[5] => 66
[6] => 67
[7] => 68
)
And another variable named $special_donors_array which contains this:
Array
(
[0] => Array
(
[group_id] => 4
[user_id] => 61
[group_leader] => 0
[user_pending] => 0
[username] => tester_8
[username_clean] => tester_8
[user_email] => tester_8@live.com
)
[1] => Array
(
[group_id] => 5
[user_id] => 62
[group_leader] => 0
[user_pending] => 0
[username] => tester_9
[username_clean] => tester_9
[user_email] => tester_9@live.com
)
)
I need to take every [user_id] value from each parent key ([0] and [1] in this case) of the $special_donors_array variable, and use those numbers to UNSET them from the $mark_ary array variable.
After I achieve what I want, the $mark_ary variable would look like this:
Array
(
[2] => 63
[3] => 64
[4] => 65
[5] => 66
[6] => 67
[7] => 68
)
Unfortunately, I can’t even think of a solution and I couldn’t even try a think because I didn’t know how to start this. I still need to gain some more array related knowledge.
Ideas?
1 Answer