I know that it's creating a reference in other cases. But what happens here?
$crawler = &new MyCrawler();
I know that it's creating a reference in other cases. But what happens here?
$crawler = &new MyCrawler();
It creates an instance of MyCrawler and passes the reference for that instance into $crawler. In PHP5 this is assumed so the use of the &
is deprecated.
That is deprecated per the PHP documentation