From 69d835477102788a728503ee60c6744dcc9443ef Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Tue, 20 May 2008 15:04:08 +0000 Subject: [PATCH] - Implemented new doc style (parameter info and changelog) - Updated documentation to reflect post 4.0.6 as current behaviour. - Removed old proto, and examples, and updated proto git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260049 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/uodbc/functions/odbc-fetch-into.xml | 164 ++++++++++-------- 1 file changed, 89 insertions(+), 75 deletions(-) diff --git a/reference/uodbc/functions/odbc-fetch-into.xml b/reference/uodbc/functions/odbc-fetch-into.xml index 13e1a7af39..49afbf1f3b 100644 --- a/reference/uodbc/functions/odbc-fetch-into.xml +++ b/reference/uodbc/functions/odbc-fetch-into.xml @@ -1,97 +1,111 @@ - - + odbc_fetch_into Fetch one result row into array - - Description + + + &reftitle.description; intodbc_fetch_into resourceresult_id - arrayresult_array + arrayresult_array intrownumber - - boolodbc_fetch_into - resourceresult_id - intrownumber - arrayresult_array - + + Fetch one result row into array. + + + + + &reftitle.parameters; + + + + result_id + + + The result resource. + + + + + result_array + + + The result array + that can be of any type since it will be converted to type + array. The array will contain the column values starting at array + index 0. + + + + + rownumber + + + The row number. + + + + + + + + + &reftitle.returnvalues; Returns the number of columns in the result; &false; on error. - result_array must be passed by reference, - but it can be of any type since it will be converted to type - array. The array will contain the column values starting at array - index 0. - - As of PHP 4.0.5 the result_array does not - need to be passed by reference any longer. - - - As of PHP 4.0.6 the rownumber cannot be - passed as a constant, but rather as a variable. - - - As of PHP 4.2.0 the result_array and - rownumber have been swapped. This allows the - rownumber to be a constant again. This change will also be the last one - to this function. - - - - <function>odbc_fetch_into</function> pre 4.0.6 example - - -]]> - - - or - - - -$rc = odbc_fetch_into($res_id, 1, $my_array); -?> -]]> - - + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 4.2.0 + + The result_array and rownumber + parameters have been swapped. This allows the rownumber to be a constant again. + + + + 4.0.6 + + The rownumber can no longer be passed in as a + constant, but rather as a variable. This again changed in 4.2.0. + + + + 4.0.5 + + The result_array parameter no longer needs to + be passed in by reference. + + + + + + + + + &reftitle.examples; - <function>odbc_fetch_into</function> 4.0.6 example - - -]]> - - - or - - - -]]> - - - - - - <function>odbc_fetch_into</function> 4.2.0 example + <function>odbc_fetch_into</function> examples