What does "&" mean in this case?
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.
See Object References (the Ampersand).
根据PHP文档已弃用
链接地址: http://www.djcxy.com/p/1696.html上一篇: PHP中“&”符号的含义是什么?
下一篇: 在这种情况下,“&”是什么意思?