How can I use the array_intersect function to get the common elements between two or more arrays in PHP? Example code: - Biz Tech

How can I use the array_intersect function to get the common elements between two or more arrays in PHP? Example code:

Listen
$fruits1 = array("apple", "banana", "orange");
$fruits2 = array("banana", "grape", "orange");

$common_fruits = array_intersect($fruits1, $fruits2);

print_r($common_fruits);