This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

SymbolName

SymbolName[symbol]
gives the name of the specified symbol.
The name of the symbol is the string :
The name of the symbol is the string :
In[1]:=
Click for copyable input
Out[1]//InputForm=
Symbol and SymbolName are inverses of each other:
Many functions of symbols also accept symbol names as arguments:
SymbolName always gives the short name, without any context:
ToString takes the settings of $Context and $ContextPath into account:
SymbolName evaluates its input:
New in 3