I have a scenario as follows where I need to check value exists in array or not using in_array
$allRecordTypes = array('new','newly','brandnew','branded');
$tempRecordTypes = array('new','newly');
$RecordType = in_array($tempRecordTypes,$allRecordTypes);
I'm sure that the above code is not correct, but I need to check whether the $tempRecordTypes
need to be checked with $allRecordTypes
.