双引号中使用常量
程序员文章站
2022-04-12 15:14:02
...
感觉很奇怪的写法,但能用..... 无 define('TEST', 'World'); $constant = 'constant'; echo "Hello {$constant('TEST')}";
感觉很奇怪的写法,但能用.....
define('TEST', 'World'); $constant = 'constant'; echo "Hello {$constant('TEST')}";