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

WBOY
Release: 2016-06-23 14:01:07
Original
1080 people have browsed it

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


回复讨论(解决方案)

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

不支持!
# 在 php 是注释符

你可以直接使用 if else 结构

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

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!