1--TEST-- 2mysqli_fetch_object() 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifconnectfailure.inc'); 7?> 8--FILE-- 9<?php 10 require('table.inc'); 11 if (!$res = mysqli_query($link, "SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 5")) { 12 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 13 } 14 15 $obj = mysqli_fetch_object($res); 16 var_dump(gettype($obj)); 17 mysqli_close($link); 18 print "done!"; 19?> 20--CLEAN-- 21<?php 22 require_once("clean_table.inc"); 23?> 24--EXPECTF-- 25%s(6) "object" 26done! 27