I want to write a condition to take an action based on an array value found on another array. It currently is not working.
$Main = array('Ami', 'Tumi', 'Amra');
$Search = array('Jani', 'Ami', 'Kara');
if(in_array($Search, $Main)){
echo "Found";
}
You can try this.