<html lang="en">
<head>
<meta charset="utf-8">
<title>Find the Intersection of Two Arrays in PHP</title>
</head>
<body>
<pre>
// Sample arrays
$array1 = array("apple", "ball", "cat", "dog", "elephant");
$array2 = array("alligator", "dog", "elephant", "lion", "cat");
// Computing the intersection
$result = array_intersect($array1, $array2);
print_r($result);
</pre>
</body>