Is there a formal name for $ sign in PHP? I just call it the dollar sign but I have an interview upcoming soon and don't want to sound very immature with the language.
Asked
Active
Viewed 104 times
2
-
9It is a variable identifier. If you get asked about it you should turn down the job. http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php – Jay Blanchard Jun 23 '14 at 17:13
-
2Even the PHP docs refer to it as "the dollar sign": http://www.php.net/manual/en/language.variables.basics.php – j08691 Jun 23 '14 at 17:14
-
1....and run, run, as fast as one possibly can! @JayBlanchard – Funk Forty Niner Jun 23 '14 at 17:19
1 Answers
8
Variables in PHP are represented by a dollar sign followed by the name of the variable.
If they use it, use it, too.
Src: http://www.php.net/manual/en/language.variables.basics.php
![](../../users/profiles/1447296.webp)
adjan
- 12,203
- 2
- 25
- 45
-
@JayBlanchard - They being the people writing the official PHP docs I believe. – j08691 Jun 23 '14 at 17:16
-