All I want to do is pass ALL the information from the array to the if statement without specifying {0],[1]... How do I do this?
$page = $_SERVER['PHP_SELF'];
$page = " . $page;
$except = array('a.php', 'b.php');
if ($page != $except[0])
{
Whatever code
}
else
{
Other code
}
$page = $_SERVER['PHP_SELF'];
$page = " . $page;
$except = array('a.php', 'b.php');
if ($page != $except[0])
{
Whatever code
}
else
{
Other code
}