2

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.

Arihant
  • 3,349
  • 13
  • 42
  • 77
  • 9
    It 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
  • 2
    Even 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 Answers1

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

adjan
  • 12,203
  • 2
  • 25
  • 45