PHP in_array or maching element's value in array

Hello, I'm trying to match element's value in array with in_array function as shown below.
It doesn't have to be in_array to acomplish this.
But, so far it doesn't work that I expected.
Please help.

Thank you.
$a = array("a", "b", "c");
$b = array("a", "z", "b",  "c", "d");
if (in_array($b, $a))
    echo "Found";
Actually, I need to acomplish:
"If ALL of $a array's elements found in array $b then reurn true."

Open in new window

Who is Participating?
eb110kAuthor Commented:
Thank you for your quick response.
I found a perfect solution in the article.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.