I created an array calling names, inside that array I have 3 names
$nomes = array ('carlos', 'maria', 'jose')
Later in the code I'm trying to create an if where it checks if the value of GET exists inside this array, but I'm not getting it. I tried to do that but it did not work.
if($_GET['pg'] == $nomes){ echo "existe";}else{echo "nao existe";}