Skip to content

Instantly share code, notes, and snippets.

@pope
Created May 21, 2010 01:39
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 pope/408361 to your computer and use it in GitHub Desktop.
Save pope/408361 to your computer and use it in GitHub Desktop.
PHP Notice: Undefined index: invalid in .../bah.php on line 4
PHP Stack trace:
PHP 1. {main}() .../bah.php:0
<?php
$array = array();
echo @$array['invalid'];
echo "\n";
if (isset($array, 'invalid')) {
echo $array['invalid'];
echo "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment