$a = 1;
$b = 2;
if (1==1) {
$andy = '帅哥';
}
?>
一般注释的时候,用
/*
$a = 1;
$b = 2;
*/
if (1==1) {
$andy = '帅哥';
}
?>
调程序的时候,老要把后面的*/拿到前面去,很麻烦
/**/
$a = 1;
$b = 2;
if (1==1) {
$andy = '帅哥';
}
?>
现在应该这样写
这样是注释掉
/**
$a = 1;
$b = 2;
if (1==1) {
$andy = '帅哥';
}
/**/
?>
这样是不注释
/**/
$a = 1;
$b = 2;
if (1==1) {
$andy = '帅哥';
}
/**/
?>
再附上一个小规范
所有php文件,末尾都不要
?>
这样可以避免有空白输出
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