Forum Moderators: coopster
That said, the PHP manual section on references [php.net] might be handy -- perhaps especially this page [php.net] that says:
Do not use return-by-reference to increase performance, the engine is smart enough to optimize this on its own. Only return references when you have a valid technical reason to do it!
Of course, I don't really grok references so I'm not sure if that does apply in this case but it seemed the only discussion of the impact on references to performance.
$rs1 = &$cnn->Execute("SELECT id FROM table");
$rs2 = &$cnn->Execute("SELECT name FROM table");
echo $rs1 -> data();// somehow show the data from $rs1
echo $rs2 -> data();//
I think both will output names - you would loose what you wanted to have in rs1.
However I may be wrong. It requires testing.
Michal