What does "&" mean in this case?
I know that it's creating a re开发者_如何学Cference 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.
See Object References (the Ampersand).
That is deprecated per the PHP documentation
加载中,请稍侯......
精彩评论