i know that its creating a reference in other cases. but what happens here?
$crawler = &new MyCrawler();
i know that its 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.
EDIT: It took me a minute to find this: