3

Possible Duplicate:
What does it mean to start a PHP function with an ampersand?

hi

Why is it that some php functions have a '&' in their signature for example

function &getData()
Community
  • 1
  • 1
Anand Sunderraman
  • 7,900
  • 31
  • 90
  • 150

1 Answers1

6

It returns a reference to a variable.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964