Level 75
instanceof is used to determine whether a PHP variable is an instantiated object of a certain class.
Docs: https://www.php.net/manual/en/language.operators.type.php
May Sale! All accounts are 40% off this week.
hi, When and do you use instance of in your Laravel projects? What is it best used for?
Of course that Laravel use it for example
https://github.com/laravel/framework/blob/7.x/src/Illuminate/Foundation/Exceptions/Handler.php#L200
Please or to participate in this conversation.