instanceof is used to determine whether a PHP variable is an instantiated object of a certain class:
<?php class A{ } $obj = new A(); if ($obj instanceof A) { echo 'A'; } ?>
instanceof is used to determine whether a PHP variable is an instantiated object of a certain class:
<?php class A{ } $obj = new A(); if ($obj instanceof A) { echo 'A'; } ?>
= | Assignment |
+ | Addition |
– | Subtraction |
* | Multiplication |
/ | Division |
% | Modulus |
== | Equal To |
!= | Not Equal To |
< | Less Than |
> | Greater Than |
<= | Less Than or Equal To |
>= | Greater Than or Equal To |
+= | Plus Equals |
-= | Minus Equals |
*= | Multiply Equals |
/= | Divide Equals |
%= | Modulo Equals |
.= | Concatenate Equals |