📜  获取对象类型 php 代码示例

📅  最后修改于: 2022-03-11 14:53:54.298000             🧑  作者: Mango

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