Skip to content

Instantly share code, notes, and snippets.

@tim-cotten
Created March 5, 2021 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tim-cotten/39250c88adf10b4ad86cf40d17defe65 to your computer and use it in GitHub Desktop.
Save tim-cotten/39250c88adf10b4ad86cf40d17defe65 to your computer and use it in GitHub Desktop.
PHP Bugs: Arrays Don't Like Undefined Offsets (Example C)
<?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