使用:$result: object类型的结果集$result -> num_rows; //返回值是整形.php获取数据的数据类型:echo gettype( $result) ; //返回object