I need to check if the categories chosen by the user exist in the categories suggested by the php system
I have been able to write to the array the categories chosen by the user and also categories suggested by the system.
foreach($array_id_categoria_escolhida as $value_as){
echo $value_as;
}
echo " ";
foreach($array_categoria_sugerida as $value_ass){
echo $value_ass;
}
How can I join these two foreach and check if the user has selected the categories suggested by the system?