TIL in PHP, the expression false['arbitrary']['whatever'] doesn't throw an error.
Conversation
(The unit tests passed for a case where my code-reviewer said it'd fail. Was curious why).
1
Replying to
Yeah, in terms of "this common thing behaves in surprising ways", PHP and JavaScript are right up there.
Last I recall seeing in actual codebase was array + array, vs array_merge.
1

