Forum und email

dbplus_first

(PHP 4 >= 4.0.7, PECL dbplus:0.9)

dbplus_first — Get first tuple from relation

Description

int dbplus_first ( resource $relation , array &$tuple )

Reads the data for the first tuple for the given relation , makes it the current tuple and pass it back as an associative array in tuple .

Parameters

relation

A relation opened by dbplus_open().

tuple

Return Values

Returns DBPLUS_ERR_NOERR on success or a db++ error code on failure.

Notes

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.