PHP Tutorial Tutorials - PHP Type Operators

PHP Type Operators

The only single Type operator instanceof is used to determine whether a PHP variable is an instantiated object of a certain class

<?php
class MyClass
{
}
$a = new MyClass;
var_dump($a instanceof MyClass);
?> 
Date:2019-10-01 02:21:51 From:www.Lautturi.com author:Lautturi