2

I have a question about the PHP syntax.Below is the php code:

$err = $campaign =& $this->_setCampaign($mission['campaign_id'])

what does the "=&" mean? I had googled but since google doesn't support for searching these marks.Is it something about the assign by reference issue?

Dalen
  • 8,856
  • 4
  • 47
  • 52
Jarod
  • 189
  • 9
  • possible duplicate of [Reference - What does this symbol mean in PHP?](http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php) – deceze Apr 12 '12 at 08:17

2 Answers2

6

That's a reference operator.

http://php.net/manual/en/language.references.php for more details.

Yuriy
  • 1,964
  • 16
  • 23
  • You're welcome, and if mine or other answers help you please don't forget to mark one of the answers as accepted. – Yuriy Apr 12 '12 at 08:39
2

Yes, it's assignment by reference. Read more in the manual.

Emil Vikström
  • 90,431
  • 16
  • 141
  • 175