使用PHP 中的instanceof 运算符,可以判断一个对象是否属于某一个类,语法格式如下:. 对象名instanceof 类名;. 【示例】使用instanceof 判断一个对象是否属于某个类。
確定! 回上一頁