instanceof With Variables

no-email (Damien Seguy), Damien Seguy
Sun, 24 Nov 2024 00:00:00 +0000

It is possible to compare the type of two objects with ``instanceof``: PHP uses the class of the second operand, or the name of the class passed as a string.
The cast operator ``(object)`` creates ``stdClass`` when applied to array.