作者:journeylis-1998_246 | 来源:互联网 | 2023-05-22 12:15
InPHPandsomeotherscriptinglanguageshavethe$varsyntaxwhileJavaandotherlanguageswecan
In PHP and some other scripting languages have the $var
syntax while Java and other languages we can do just var
.
在PHP和其他一些脚本语言中有$ var语法,而Java和其他语言我们可以做var。
Is there any theory behind it? Does it help them to parse. If not why would they choose to tack on an extra character in front?
它背后有什么理论吗?它能帮助他们解析吗?如果不是为什么他们会选择在前面加上一个额外的角色呢?
6 个解决方案