Home  >  Article  >  Backend Development  >  http://67.220.92.14/forum/inde PHP comment example skills

http://67.220.92.14/forum/inde PHP comment example skills

WBOY
WBOYOriginal
2016-07-29 08:39:052800browse

Copy code The code is as follows:


$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
? >


When making general comments, use

to copy the code . The code is as follows:


/*
$a = 1;
$b = 2;
*/
if ( 1==1) {
$andy = 'handsome guy';
}
?>


When adjusting the program, I always have to bring the */ at the back to the front, which is very troublesome

Copy the code The code is as follows:


/**/
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
?>


should be written like this now
Comment out like this

Copy code The code is as follows:


/**
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
/**/

?>
This means no comments

Copy the code The code is as follows:


/* */
$a = 1;
$b = 2;
if (1==1) {
$andy = 'handsome guy';
}
/**/
?>


Attached is a small specification
All php files, do not have
?> at the end
This can avoid blank output

The above introduces the http://67.220.92.14/forum/inde PHP annotation example skills, including the content of http://67.220.92.14/forum/inde. I hope it will be helpful to friends who are interested in PHP tutorials.

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