ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:recordset:fetchnextobj

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:recordset:fetchnextobj [2016/01/28 18:00] – [Usage] mnewnhamv5:reference:recordset:fetchnextobj [2023/06/11 12:02] (current) – Add fetchNextObject alias dregad
Line 1: Line 1:
 ====== fetchNextObj ======= ====== fetchNextObj =======
 +
 ~~NOTOC~~ ~~NOTOC~~
 +
 <WRAP right box> <WRAP right box>
   obj fetchNextObj(   obj fetchNextObj(
       optional bool $upperCaseKeys=false       optional bool $upperCaseKeys=false
 +      )
 +
 +  obj fetchNextObject(
 +      optional bool $upperCaseKeys=true
       )       )
 </WRAP> </WRAP>
 +
 +====== fetchNextObject =======
 +
 ===== Description ===== ===== Description =====
-The function ''fetchNextObj()'' returns the current record from a recordset as an object, and advances the record pointer.+ 
 +The ''fetchNextObj()'' / ''fetchNextObject()'' functions return the current record from a recordset as an object or //false// if past end-of-file, and advance the record pointer.  
 + 
 +''fetchNextObj()'' and ''fetchNextObject()'' can be considered as aliases, except for the fact that the latter converts the field names to uppercase by default, whereas ''fetchNextObj()'' does not. 
 + 
 +The [[v5:reference:recordset:fetchObj()]] method is similar, but does not affect the record pointer. It is recommended that the 2 methods are not mixed in the same procedure.  
 + 
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
Line 33: Line 49:
        
 </code> </code>
 +
 {{tag>[PEAR Objects]}} {{tag>[PEAR Objects]}}
v5/reference/recordset/fetchnextobj.1454000446.txt.gz · Last modified: 2017/04/21 11:37 (external edit)