Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:37:02+00:00 2026-06-11T13:37:02+00:00

I have an array named $mark_ary which contains this: Array ( [0] => 61

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:37:04+00:00Added an answer on June 11, 2026 at 1:37 pm
    foreach($special_donors_array as $special_donor){
                    foreach($mark_ary as $k => $mark){
                        if($mark == $special_donor['user_id']){
                            unset($mark_ary[$k]);
                        }
                    }
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array list named newSymptomList which contains a list of Symptom id's
I have an array which contains sets of three similar named items; however, sometimes
I have mutable string array named arrayout. It is having 3 element .Now I
In my Values folder for my project, I have a string array named currency_avatar.
I have a string array in C named args[] - now how can I
i have printed out the contents of an array/object (named 'document') with print_r. it
Let's say I have this array, $array = array( 'name' => 'hermet', 'emails' =>
This is the task at hand: I have a db table named 'reports', one
I have created a controller class named TAddAlarmController which has a tableview which consists
I Create a class named DataClass there i have this method +(NSMutableArray*) returnList :(NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.