0
why is $ sign used before variables in Php? what does it means?
what does that $ sign means actualy?
2 Answers
+ 2
The use of the $ sign results from historical reasons. PHP was originally developed as a replacement for the Perl language. Variables in Perl also use a $ sign. Perl, in turn, originates from miscellaneous Unix-scripting languages. Those Unix shell variables typically used (and still use) the $ sign as prefix, to access their values.