Home  >  Article  >  Backend Development  >  【有关问题】php是否支持条件编译

【有关问题】php是否支持条件编译

WBOY
WBOYOriginal
2016-06-13 11:50:33986browse

【问题】php是否支持条件编译
php新手,请问php支持
#if 0
#else
#endif
这种条件编译吗?我试了不行,想知道php有无响应语法支持这种
------解决方案--------------------


#你指的是这个?
if(0){
...
}else{
...
}

------解决方案--------------------
不支持!
# 在 php 是注释符

你可以直接使用 if else 结构

Statement:
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
Previous article:求大神指导一二Next article:向xuzuning请问