Home  >  Article  >  Backend Development  >  PHP annotation example skills_PHP tutorial

PHP annotation example skills_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:49:45890browse

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.

www.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...
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
Previous article:Advanced skills in PHP Mysql programming_PHP tutorialNext article:Advanced skills in PHP Mysql programming_PHP tutorial

Related articles

See more