This question already has an answer here:
I've two arrays, one is my define array and another I process from the database. Is there any proper way to compare between those arrays?
From database:
$user_type = [0 => "public" 1 => "10x413" 2 => "12x432"]
Defined array:
$specificUser = ['10x410','10x411','10x412','10x413','10x414']
If any element matches, then return true, just like php in_array()
function.
</div>