gettype($obj);// Output: "object" $obj instanceof Myclass;// Output: true (if it's an instance of that class)