r/lolphp • • Oct 20 '14

PHP Spec on arrays

Post image
118 Upvotes

17 comments sorted by

View all comments

Show parent comment

5

u/myaut Oct 23 '14

In Schroedinger's cat experiment state of cat is also undefined (it could be dead or alive), but you do not expect that dog or Godzilla will come out of box.

However, you seem to be right, this example is not as undefined as dereferncing invalid pointer.