Last active
August 24, 2021 10:58
-
-
Save tadeubdev/9ad4e0fa9b6306b468ae82cf18bc7cc9 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 | |
| $valor = "Lorem ipsum"; | |
| if (is_string($valor)) { | |
| echo "Oi! Sou uma string!"; // Irá entrar aqui | |
| } | |
| $valor = 123; | |
| if (is_numeric($valor)) { | |
| echo "Agora sou um número!"; // Irá entrar aqui | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment