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