<?php
$array1 = array(1, 2, 3, 4, 5);
$array2 = array(4, 5, 6, 7, 8);
$intersection = array_intersect($array1, $array2);
print_r($intersection);
?>