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 would like to simplify something like this:
if (isset($_GET["cadastrarMembro"]) && $_SESSION["acesso"]["idAcesso"] IN (3, 5, 6 , 10)) {
//FAZ ALGO AQUI
}
How to do this?