PHP:为什么ERROR常量会产生错误


PHP: Why ERROR constant produces error?

我使用以下代码:

define ('EMPTY', 'test');
echo EMPTY;

但我无法获得输出。我得到以下错误:

Parse error: syntax error, unexpected ';', expecting '('

Empty是一个保留字。

<?php
define ('EMPTY2', 'test');
echo EMPTY2;

按预期工作。