====== fetchNextObj =======
~~NOTOC~~
obj fetchNextObj(
optional bool $upperCaseKeys=false
)
===== Description =====
The function ''fetchNextObj()'' returns the current record from a recordset as an object, and advances the record pointer.
===== Usage =====
/*
* Connection assumed
*/
$result = $db->Execute('SELECT * FROM Employees');
while (!$result->EOF){
$obj = $result->fetchNextObj();
print_r($obj);
/*
* Prints :
*
*
ADOFetchObj Object
(
[emp_no] => 10001
[birth_date] => 1953-09-02
[first_name] => Georgi
[last_name] => Facello
[gender] => M
[hire_date] => 1986-06-26
)
}
{{tag>PEAR Objects}}