v5:reference:recordset:fetchnextobj
This is an old revision of the document!
fetchNextObj
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 ) }
v5/reference/recordset/fetchnextobj.1452987719.txt.gz · Last modified: 2017/04/21 11:37 (external edit)