为什么PHP注意:使用未定义的常量Y - 在xampp 1.8.2中假定为'Y'用于定义(Y,120) [英] why PHP Notice: Use of undefined constant Y - assumed 'Y' in xampp 1.8.2 for define (Y,120)

查看:207
本文介绍了为什么PHP注意:使用未定义的常量Y - 在xampp 1.8.2中假定为'Y'用于定义(Y,120)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



文件test.php是:

?php define(Y,120); ?>
$ x $ b将xampp版本升级到1.8.2后,执行脚本时会发出通知:

注意:使用未定义的常量Y - 假设'Y'

hi
file test.php is :
?php define(Y,120); ?>
after upgrade xampp version to 1.8.2 , When executing script there is given notice:
Notice: Use of undefined constant Y - assumed 'Y'

推荐答案

你试过用单引号包装Y吗?



:)
have you tried wrapping Y with single quote?

:)


这篇关于为什么PHP注意:使用未定义的常量Y - 在xampp 1.8.2中假定为'Y'用于定义(Y,120)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆