首页 >php教程 >php手册 >双引号中使用常量

双引号中使用常量

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-06 19:37:012238浏览

感觉很奇怪的写法,但能用..... 无 define('TEST', 'World'); $constant = 'constant'; echo "Hello {$constant('TEST')}";

感觉很奇怪的写法,但能用.....
define('TEST', 'World');  
$constant = 'constant';  
echo "Hello {$constant('TEST')}"; 
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn