From 72747a6aca3c702351540d920a7695c3dbf9d56b Mon Sep 17 00:00:00 2001 From: Esen Sagynov Date: Fri, 19 Nov 2010 03:08:54 +0000 Subject: [PATCH] Add a new function cubrid_fetch_array git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305544 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../cubrid/functions/cubrid-fetch-array.xml | 111 ++++++++++++++++++ reference/cubrid/versions.xml | 1 + 2 files changed, 112 insertions(+) create mode 100644 reference/cubrid/functions/cubrid-fetch-array.xml diff --git a/reference/cubrid/functions/cubrid-fetch-array.xml b/reference/cubrid/functions/cubrid-fetch-array.xml new file mode 100644 index 0000000000..879bad6587 --- /dev/null +++ b/reference/cubrid/functions/cubrid-fetch-array.xml @@ -0,0 +1,111 @@ + + + + + + cubrid_fetch_array + Fetch a result row as an associative array, a numeric array, or both + + + + &reftitle.description; + + arraycubrid_fetch_array + resourcereq_identifier + inttype = CUBRID_BOTH + + + The cubrid_fetch_array function is used to get a + single row from the query result and returns an array. The cursor + automatically moves to the next row after getting the result. + + + + + &reftitle.parameters; + + + + req_identifier + Request identifier. + + + type + Array type of the fetched result CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH. + + + + + + + &reftitle.returnvalues; + Returns an array of strings that corresponds to the fetched row, when process is successful. + &false;, when process is unsuccessful. + The type of returned array depends on how type is defined. By using CUBRID_BOTH (default), you'll get an array with both associative and number indices, and you can decide which data type to use by setting the type argument. The type variable can be set to one of the following values: + + CUBRID_NUM : Numerical array (0-based) + CUBRID_ASSOC : Associative array + CUBRID_BOTH : Numerical & Associative array (default) + + + + + &reftitle.examples; + + <function>cubrid_fetch_array</function> example + + +]]> + + + + + + &reftitle.seealso; + + + cubrid_execute + + + + + + + diff --git a/reference/cubrid/versions.xml b/reference/cubrid/versions.xml index 6c6e5f412c..9e51a206cd 100644 --- a/reference/cubrid/versions.xml +++ b/reference/cubrid/versions.xml @@ -29,6 +29,7 @@ +