References
| From: | Vidyut Luther | Date: | Tue, 07 Nov 2000 19:44:01 +0000 |
| Subject: | References | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24168@lists.php.net to get a copy of this message | ||
I was wondering why this is not possible.
function get_a_lot_of_data() {
$sql = "select * from hugetable";
$result = mysql_query($sql);
return &result;
}
I have to do this all the time,
$ref = &$result;
return $ref;
why do i have to create the reference first, and then pass it ? i have no
formal education in programming.. so any of you computer sci majors wanna
clear this up for me ?