Last active
May 22, 2019 16:38
-
-
Save flaviors200/71bb790fb3223ef97c5e3ff32f852801 to your computer and use it in GitHub Desktop.
Non Boolean data types
This file contains 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 | |
$isLoaded = 1; | |
if ($isLoaded) { | |
echo "Carico\n"; | |
} else { | |
echo "Non carico\n"; | |
} | |
// Output: Carico | |
$isLoaded = "Carico"; | |
if ($isLoaded) { | |
echo "Carico"; | |
} else { | |
echo "Non carico"; | |
} | |
// Output: Carico |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment