<?php define(A, '12');
Notice: Use of undefined constant A - assumed 'A' Why does this error occur
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;
Already solved
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;
Already solved