其他具有自动变量声明的语言(如Perl)具有严格模式.
通过激活此严格模式,需要变量声明,并且只要您尝试使用未声明的变量,Perl就会抛出错误.
PHP提供任何类似的功能吗?
php variables declaration
declaration ×1
php ×1
variables ×1