cvs: /phpdoc/functions pgsql.sgml

From: Date: Mon, 19 Jul 1999 17:10:50 +0000
Subject: cvs: /phpdoc/functions pgsql.sgml
Groups: php.dev 
Request: Send a blank email to php-dev+get-8742@lists.php.net to get a copy of this message
eschmid Mon Jul 19 17:10:50 1999 EDT Modified files: /phpdoc/functions pgsql.sgml Log: Andrey, does it look you have suggested? If not, correct me. Index: phpdoc/functions/pgsql.sgml diff -u phpdoc/functions/pgsql.sgml:1.4 phpdoc/functions/pgsql.sgml:1.5 --- phpdoc/functions/pgsql.sgml:1.4 Sat Jun 19 18:12:06 1999 +++ phpdoc/functions/pgsql.sgml Mon Jul 19 17:10:47 1999 @@ -255,6 +255,9 @@ <funcdef>array <function>pg_fetch_array</function></funcdef> <paramdef>int <parameter>result</parameter></paramdef> <paramdef>int <parameter>row</parameter></paramdef> + <paramdef>int + <parameter><optional>result_type</optional></parameter> + </paramdef> </funcsynopsis> <para> Returns: An array that corresponds to the fetched row, or false @@ -265,6 +268,14 @@ data in the numeric indices of the result array, it also stores the data in associative indices, using the field names as keys. <para> + The third optional argument <parameter>result_type</parameter> in + <function>pg_fetch_array</function> is a constant and can take the + following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH. + <note> + <para> + <parameter>Result_type</parameter> was added in PHP 4.0. + </note> + <para> An important thing to note is that using <function>pg_fetch_array</function> is NOT significantly slower than using <function>pg_fetch_row</function>, while it @@ -312,6 +323,9 @@ <funcdef>object <function>pg_fetch_object</function></funcdef> <paramdef>int <parameter>result</parameter></paramdef> <paramdef>int <parameter>row</parameter></paramdef> + <paramdef>int + <parameter><optional><parameter>result_type</optional></parameter> + </paramdef> </funcsynopsis> <para> Returns: An object with properties that correspond to the fetched @@ -322,6 +336,14 @@ object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names). + <para> + The third optional argument <parameter>result_type</parameter> in + <function>pg_fetch_object</function> is a constant and can take the + following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH. + <note> + <para> + <parameter>Result_type</parameter> was added in PHP 4.0. + </note> <para> Speed-wise, the function is identical to <function>pg_fetch_array</function>, and almost as quick as

« previous php.dev (#8742) next »