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

  • Home
  • SEARCH
  • 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 9144705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:20:05+00:00 2026-06-17T10:20:05+00:00

Im starting to get no ideias to solve this or probably its more simples

  • 0

Im starting to get no ideias to solve this or probably its more simples than i expecpt.
Hope someone can help:

Im try to verify if

array A

arrA = Array
(
    [0] => hindu
    [1] => inglês
)

exists in array B

arrb = Array
(
    [0] => active
    [1] => awsome
    [2] => speaker
    [3] => creative
    [4] => team leader
    [5] => project manager
    [6] => chinese
    [7] => hindu
    [8] => spanish
    [9] => english
) 

If(in_array($arrA , $arrB)){
echo true;
}

Meaning if the 2 elements of array A exist in Array B then return TRUE. ( Both elements not just one).
And the size of Array A is not always the same ( can have 1 to many elements).

I tryed in_array and various recursive functions, but no luck…

Anyone?

Thanks for the help in advance.

  • 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-17T10:20:06+00:00Added an answer on June 17, 2026 at 10:20 am

    You can use array_diff() –

    $all_elements_exist = count(array_diff($a, $b)) == 0 ? true : false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a simple answer, but i'm just starting to get the hand
I'm just starting to get into jquery/javascript programming so this may be a beginner
as someone's who's just starting to get into Android/Java programming, I've read the docs
I'm starting with node expressjs framework and I came across this problem I can't
I am starting an iPhone application, and I can't seem to get the main
I'm wondering if you can help me get started with a project, if there
I'm just starting to get to grips with ideas and techniques behind complex networks
I'm starting to get into Unit Testing, Dependancy Injection and all that jazz while
I'm starting to get to grips with CodeIgniter and came across it's support for
I am starting to get into programming as a hobby, I had several classes

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.