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

WBOY
Release: 2016-07-29 08:39:05
Original
2763 people have browsed it

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.

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!