The type operator is a special operator containining an operation used in class represented by instanceof. The type operator is used to determine whether a variable is instantiated object of a class that is inherited from the parent class.

Example of type operator (instanceof) in PHP

 

›› go to examples ››