搜索

首页  >  问答  >  正文

PHP notice 级别错误

<?php

define(A, '12');

Notice: Use of undefined constant A - assumed 'A'
为啥会出现这个错误

某草草某草草2829 天前876

全部回复(2)我来回复

  • 学习ing

    学习ing2017-06-28 09:25:23

    定义的时候常量名要加引号,不然当常量调用后.示例:define('A','12');或const A = '12'; echo A;

    回复
    0
  • 世界只因有你

    世界只因有你2017-06-28 09:25:23

    已经解决

    回复
    0
  • 取消回复