Created
March 5, 2021 12:29
-
-
Save tim-cotten/39250c88adf10b4ad86cf40d17defe65 to your computer and use it in GitHub Desktop.
PHP Bugs: Arrays Don't Like Undefined Offsets (Example C)
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 | |
$arr = array(); | |
if ($arr[0] == false) { | |
echo "Yay"; | |
} else { | |
echo "Boo"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment