Array And Object Syntax, Not The Same Error

no-email (Damien Seguy), Damien Seguy
Fri, 08 Dec 2023 00:00:00 +0000

When accessing an array as an object, PHP raises a Warning and continues with NULL.
When accessing an object as an array, without ArrayAccess, PHP raises a Fatal Error and stops.
It is critical to check the syntax used to access an object.