$year=date(Y);
这样写有错吗?
错误提示:
Notice: Use of undefined constant Y - assumed 'Y' in C:\Apache2\htdocs\content\spinklogmanage.php on line 16
这样写有错吗?
错误提示:
Notice: Use of undefined constant Y - assumed 'Y' in C:\Apache2\htdocs\content\spinklogmanage.php on line 16
但是使用未赋值的变量会有提示,不是出错
变量在使用之前最后先初始化,规范
2 $year=date("Y");