Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • what about something like $a = &$this->a. Is $a now a reference to &this->a? Commented Jan 8, 2010 at 21:40
  • 1
    As you are using the &, yes, it should -- see php.net/manual/en/… Commented Jan 8, 2010 at 21:42
  • 1
    holy cow, i can't believe this is the problem i had... should this be a lesson, always read the offing manual Commented Feb 1, 2014 at 19:38
  • 2
    Hi Pascal, I found Kosta Kontos's answer seems to be more accurate. I do a simple quick test to confirm his finding gist.github.com/anonymous/aaf845ae354578b74906 Can you comment on his finding too? Commented May 29, 2014 at 10:38
  • 1
    This is the problem I was having too: thought it was something weird about nested arrays but it was actually just how array assignment works in PHP. Commented Jul 23, 2015 at 7:45