0
what is $ in php ?
6 Answers
+ 5
MONEY BRUH!!!!
Nah, seriously. They mean variables.
$name = "hossy";
and that is a variable with your name.
+ 5
Exactly. You don't use "var" in PHP, instead you use $ with no space between the var name.
+ 2
$ is used to declare a variable. Like in C++ you would use int x you use $x. Or in JavaScript var x.
+ 1
ahaa. tnx
like this
var name =" hossy"
in JavaScript
0
it use to declare variables
0
$ in PHP can be used to declare a variable. (example: $w = "Hello World!";)