The 5th Annual China PHP Conference

Voting

Please answer this simple SPAM challenge: eight plus one?
(Example: nine)

The Note You're Voting On

pike at kw dot nl
11 years ago
if your object seems to "forget" assignments you make after instantiation, realize that in

$foo = new Bar()

the variable on the left hand is a *copy* of the variable on the right hand. As a result, & references made during instantiation may point to the righthandside version of Bar() and not to $foo. you'd better use

$foo = & new Bar()

<< Back to user notes page

To Top