how to search an element in an array using php

<?php
// SEARCHING ELEMENTS IN AN ARRAY

// FIND IN THIS ARRAY
$allphone = array(
 '9831458564',
 '9831256415',
 '9854657616',
 '9654857617',
 '9645877618',
 '8569877898',
 '5824578985',
 '12345678',
 '584587258',
 '5265487',
 '1234567890');

// HAVE TO FIND THESE VALUES
$findPhoneArray = array('1234567890', '5265487');

 foreach ($allphone as $value) 
 {
 echo $value;
 echo "<br>";
 $ss = array_search($value, $findPhoneArray);
 echo "found in =>";
 print_r($ss);
 echo "<br>";
 }
 
?>