get object type in php code example
Example 1: php get type of object
gettype($object);
Example 2: get object tyhpe php
gettype($obj);// Output: "object"
$obj instanceof Myclass;// Output: true (if it's an instance of that class)
gettype($object);
gettype($obj);// Output: "object"
$obj instanceof Myclass;// Output: true (if it's an instance of that class)