Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "&" mean in this case?

Tags:

php

I know that it's creating a reference in other cases. But what happens here?

$crawler = &new MyCrawler();
like image 303
ajsie Avatar asked Feb 19 '10 15:02

ajsie


People also ask

What does the fox say Meaning?

Speaking of the meaning of the song, Vegard characterizes it as coming from "a genuine wonder of what the fox says, because we didn't know". Although interpreted by some commentators as a reference to the furry fandom, the brothers have stated they did not know about its existence when producing "The Fox".

What does a real fox say?

One of the most common fox vocalizations is a raspy bark. Scientists believe foxes use this barking sound to identify themselves and communicate with other foxes. Another eerie fox vocalization is a type of high-pitched howl that's almost like a scream.

How can I find a song by the sound?

On your phone, touch and hold the Home button or say "Hey Google." Ask "What's this song?" Play a song or hum, whistle, or sing the melody of a song. Hum, whistle, or sing: Google Assistant will identify potential matches for the song.


2 Answers

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).

like image 198
Joel Etherton Avatar answered Sep 23 '22 15:09

Joel Etherton


That is deprecated per the PHP documentation

like image 30
Dancrumb Avatar answered Sep 22 '22 15:09

Dancrumb