0

I know & is used to create references.

But I wonder what having a & before a function name means:

function &DB($params = '', $active_record_override = FALSE) { // code }
Chris Barlow
  • 3,174
  • 4
  • 28
  • 50
never_had_a_name
  • 80,383
  • 96
  • 257
  • 374

1 Answers1

5

It returns the result by reference. See the manual entry for it here.

PatrikAkerstrand
  • 43,625
  • 11
  • 74
  • 92