-1
I have the following condition to test:
if (isset($_GET["cadastrarMembro"]) && (
$_SESSION["acesso"]["idAcesso"] == 3
$_SESSION["acesso"]["idAcesso"] == 5
$_SESSION["acesso"]["idAcesso"] == 6
$_SESSION["acesso"]["idAcesso"] == 10
) {
//FAZ ALGO AQUI
}
I’d like to simplify with something like this:
if (isset($_GET["cadastrarMembro"]) && $_SESSION["acesso"]["idAcesso"] IN (3, 5, 6 , 10)) {
//FAZ ALGO AQUI
}
How to do this?
Fit to get here this way if (isset($_GET["register"Member"]) && in_array($_SESSION["access"]["idAccess"], array(3, 5, 6 , 9, 10))) {} but yours got better
– Carlos Rocha