cubrid_fetch_object

PECL CUBRID >= 8.3.0
cubrid_fetch_object - Fetch the next row and return it as an object
Manual
Code Examples

cubrid_fetch_object( resource$result, [string$class_name], [array$params], [int$type] ): object

This function returns an object with the column names of the result set as properties. The values of these properties are extracted from the current row of the result.

Parameters

result

result comes from a call to cubrid_execute

class_name

The name of the class to instantiate. If not specified, a stdClass (stdClass is PHP's generic empty class that's used when casting other types to objects) object is returned.

params

An optional array of parameters to pass to the constructor for class_name objects.

type

Type can only be CUBRID_LOB, this parameter will be used only when you need to operate the lob object.

Return Values

An object, when process is successful.

false, when there are no more rows; NULL, when process is unsuccessful.

Related Functions

Example of cubrid_fetch_object

Show all examples for cubrid_fetch_object

PHP Version:


Function cubrid_fetch_object:

CUBRID Functions

Most used PHP functions