We've got variable that for some reason we think would be an array, but it happens to be null.
$var = null
We try to get a value from this variable.
$value = $var['key']
This doesn't throw an error, my intuition is that it would though. What instead happens is that $value is now also null. Is there a particular reason that the above line doesn't throw an error?
See Question&Answers more detail:os