php 常量引用

WBOY
Release: 2016-06-23 13:08:17
Original
1142 people have browsed it


 
define("HTML_FONT", "Tahoma");
define("HTML_FONT_SIZE", "12px");


$html_str=
nbsp;html>







Eof;
?>

这里面常量不解析。html源码还是


变量正常解析

why?


回复讨论(解决方案)

php 只解释放在  标记内的东西

知道了!!!

说是定界符支持常量,需要变量中转。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!