Last active
August 9, 2021 21:37
-
-
Save tadeubdev/8bbb72ecf5ea78d52976eb9d106f7c29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $nome = "Luna"; | |
| $sobrenome = "Lovegood"; | |
| $casa = "Corvinal"; | |
| function checkTemAcesso(string $nome, string $sobrenome, string $case): bool { | |
| // poderíamos colocar toda essa linha como retorno, | |
| // só para ficar mais claro fiz assim :) | |
| if ($nome === "Luna" && $sobrenome === "Lovegood" or $casa === "Corvinal") { | |
| return true; | |
| } | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment