empty vs. isset vs. array_key_exists

Ich zitier hier einfach mal. Hab ich nämlich nicht gewusst. The problem is that there are situations where isset() and empty() are not appropriate checks. For instance, try this: $test = array(‚foo‘ => null); echo ((isset($test[‚foo‘])) ? ‚true‘ : ‚false‘); // echoes ‚false‘! What about empty()? $test = array(‚foo‘ => null); echo ((empty($test[‚foo‘])) ? ‚true‘ […]