php判断对象是那个类派生时间:2022-09-07 19:19:57 <?php $th = new Thread; //创建新对象 if ($th instanceof Thread) //如果对象$th是Thread类型的,则输出Yes echo "Yes"; else echo "No"; ?>