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

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

WBOY
Release: 2016-06-13 11:50:33
Original
1117 people have browsed it

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

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

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

你可以直接使用 if else 结构

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