+ 1

Why used sign dollar 💲 before variables ?

24th Dec 2016, 4:04 PM
Oula Nasri
Oula Nasri - avatar
4 Answers
+ 6
for not particular reason, it's just php syntax.
24th Dec 2016, 4:48 PM
Nahuel
Nahuel - avatar
+ 3
it looks cool ;)
25th Dec 2016, 7:10 PM
Ian Croasdell
Ian Croasdell - avatar
+ 2
It just follows Perl's convention of using $ sign before variable names,
24th Dec 2016, 5:46 PM
Rishi Anand
Rishi Anand - avatar
0
Thats how you declare a variable in php otherwise you will get an error. In other words that is default using the $ sign
26th Dec 2016, 5:14 PM
Macky Miro
Macky Miro - avatar