Comments in PHP, PHP comments_PHP tutorial

WBOY
Release: 2016-07-12 08:58:09
Original
874 people have browsed it

Comments in PHP, PHP comments

<span>//</span><span> 这是 PHP 单行注释</span>

<span>/*</span><span>
这是 
PHP 多行
注释
</span><span>*/</span>
Copy after login
<?<span>php
</span><span>$txt1</span>="Learn PHP"<span>;
</span><span>$txt2</span>="w3cschool.cc"<span>;
</span><span>$cars</span>=<span>array</span>("Volvo","BMW","Toyota"<span>);

</span><span>echo</span> <span>$txt1</span><span>;
</span><span>echo</span> "<br>"<span>;
</span><span>echo</span> "Study PHP at <span>$txt2</span>"<span>;
</span><span>echo</span> "My car is a {<span>$cars</span>[0]}"<span>;
</span><span>echo</span> "<br>"<span>;
</span><span>echo</span> "{<span>$txt1</span>}"<span>;
</span>?>
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1104659.htmlTechArticleComments in PHP, PHP comments// This is a PHP single-line comment/* This is a PHP multi-line comment*/ ? php $txt1 ="Learn PHP" ; $txt2 ="w3cschool.cc" ; $cars = array ("Volvo","BMW","Toyota" ); ec...
Related labels:
php
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