search

Home  >  Q&A  >  body text

PHP notice level error

<?php

define(A, '12');

Notice: Use of undefined constant A - assumed 'A'
Why does this error occur

某草草某草草2764 days ago853

reply all(2)I'll reply

  • 学习ing

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

    When defining, the constant name must be quoted, otherwise it will be called after the constant. Example: define('A','12'); or const A = '12'; echo A;

    reply
    0
  • 世界只因有你

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

    Already solved

    reply
    0
  • Cancelreply