<?php $array_1 = Array( 'car', 'bike', 'plane', 'ship' ); $array2 = Array( 'tiger', 'bike', 'bike_1', 'bike_30', 'bike_clone', 'bike_sold', 'plane', 'plane_3a', 'plane_fly' ); $newArray = array_intersect($array_1, $array2); print_r($newArray);
You have javascript disabled. You will not be able to edit any code.