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