What is the Use of a dollar sign in php?

the dollar sign appears before a variable/array. Essentially it just tells php that its a variable.

$food = "cheese pizza";

or

$myfavoritenumber = 2 ;