Last active
January 5, 2019 01:28
-
-
Save Thirdwrist/370cc1dbf471878401a2d18b9902fe32 to your computer and use it in GitHub Desktop.
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
/* | |
This works fine in PHP | |
*/ | |
$value = "bob"; | |
$value = 2; | |
$value = true; | |
/* | |
This will throw an error as the variable has | |
already been defined explicitly as an integer | |
*/ | |
Int $value = 3; | |
$value = "bob" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment