diff --git a/reference/pgsql/functions/pg-fetch-object.xml b/reference/pgsql/functions/pg-fetch-object.xml index 4285477a9d..459f4f5d45 100644 --- a/reference/pgsql/functions/pg-fetch-object.xml +++ b/reference/pgsql/functions/pg-fetch-object.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,6 @@ objectpg_fetch_object resourceresult introw - intresult_type pg_fetch_object returns an object with @@ -27,21 +26,14 @@ their offsets (numbers are illegal property names). - result_type is optional parameter controls - how return value is initialized. - result_type is a constant and can take the - following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH. - pg_fetch_array returns associative array - that has field name as key for PGSQL_ASSOC. field index as key - with PGSQL_NUM and both field name/index as key with - PGSQL_BOTH. Default is PGSQL_BOTH. + row is row (record) number to be + retrieved. First row is 0. - - - result_type was added in PHP 4.0. - - + From PHP 4.2.0, row can be optional. + Calling pg_fetch_result will incremented + internal row counter, that is associated with the result, + counter by 1. Speed-wise, the function is identical to