Home >Backend Development >PHP Tutorial >【问题】php是否支持条件编译

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

WBOY
WBOYOriginal
2016-06-23 14:01:071105browse

php新手,请问php支持
#if 0
#else
#endif
这种条件编译吗?我试了不行,想知道php有无响应语法支持这种


回复讨论(解决方案)

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

不支持!
# 在 php 是注释符

你可以直接使用 if else 结构

多谢zhangbin1988 ,多谢斑竹!圆满解决

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