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

PHP annotation example skills_PHP tutorial

WBOY
Release: 2016-07-21 15:49:45
Original
949 people have browsed it

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...
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template