How can i return a pointer from a function(to an assoc.array)? This function queries some values from Oracle and the result array can be huge. I don\'t know if returning a pointer is possible in PHP but in this case it would be defenetly nice. I couldn\'t find the answer from PHP manuals or any place else so I\'d be wery pleased if somebody would answer this question. Thanks!
<<< Jartsa >>>
You can always do it C-style:
function returnMeAnArray($value1, &$retval) { // do your stuff here // populating $retval }
You can use retval then in your code.
G'Luck,
Jack
Hi,
To return a pointer prefix your function name with a '&'. That is:
function &testpointer() { // your code here return $rc; }