Longhorn PHP 2019 Schedule


Please answer this simple SPAM challenge: one minus zero?
(Example: nine)

The Note You're Voting On

pike at kw dot nl
13 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