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