note 253 modified in function.odbc-fetch-into by yannick
| From: | yannick@php.net | Date: | Fri, 25 Jul 2008 16:47:39 +0000 |
| Subject: | note 253 modified in function.odbc-fetch-into by yannick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142698@lists.php.net to get a copy of this message | ||
Passing by reference means that you have to pass a pointer to the item (i.e. array) and not the item
itself. In this case this means prepend an ampersand onto the front of your arrayname to indicate
that the arrayname is being passed by reference and not by value. For example:
<?php
$cols = odbc_fetch_into($QueryID, $RowNum, &$YourArray);
?>
--was--
Passing by reference means that you have to pass a pointer to the item (i.e. array) and not the item
itself. In this case this means prepend an ampersand onto the front of your arrayname to indicate
that the arrayname is being passed by reference and not by value. For example:
$cols = odbc_fetch_into($QueryID, $RowNum, &$YourArray);
http://php.net/manual/en/function.odbc-fetch-into.php