Skip to content

Instantly share code, notes, and snippets.

@speedygfw
Created October 25, 2013 12:01
Show Gist options
  • Save speedygfw/7153586 to your computer and use it in GitHub Desktop.
Save speedygfw/7153586 to your computer and use it in GitHub Desktop.
Unterschiede zwischen isset und array_key_exists
<?php
$a = array('key1' => 'gesetzt', 'key2' => null);
isset($a['key1']); // true
array_key_exists('key1', $a); // true
isset($a['key2']); // false
array_key_exists('key2', $a); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment