Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(is_int(10)){
- echo 'Inteiro';
- }else{
- echo 'Não Inteiro';
- }
- echo '<br />';
- if(is_int('10')){
- echo 'Inteiro';
- }else{
- echo 'Não Inteiro';
- }
- echo '<br />';
- if(is_int(10.5)){
- echo 'Inteiro';
- }else{
- echo 'Não Inteiro';
- }
- /* SAÍDA:
- Inteiro
- Não Inteiro
- Não Inteiro
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement