Copy code The code is as follows:
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
?>
For general comments, use
Copy code The code is as follows:
/*
$a = 1;
$b = 2;
*/
if (1==1) {
$andy = 'handsome guy';
}
?>
Adjust the program Sometimes, it is very troublesome to always bring the */ at the back to the front.
Copy the code The code is as follows:
< ?php
/**/
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
?>
Now it should be written like this
This is commented out
Copy the code The code is as follows:
/**
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
/**/
?>
This means no comments
Copy code Code As follows:
/**/
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
/**/
?>
Attach a small specification
All php files should not have
?>
at the end to avoid blank output.
http://www.bkjia.com/PHPjc/319470.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319470.htmlTechArticleCopy the code as follows: ?php $a = 1; $b = 2; if (1==1) { $andy = 'handsome guy'; } ? Generally when commenting, use the copied code as follows: ?php /* $a = 1; $b = 2; */ if (1==1) { $andy...