Recursive function via reference

hanank

New Member
I need to recursivly echo comments and their respective children from a Jelly collection in Kohana. I was wondering how I pass a variable to a function via reference. I assume it would be something like this:\[code\]function recursive(&$array){ recursive(&$array);}\[/code\]But I am not quite sure. So is this correct or when I call the function do I not need the ampersand?Thanks.
 
Back
Top