首页 >后端开发 >php教程 >PHP 中的注释,PHP注释_PHP教程

PHP 中的注释,PHP注释_PHP教程

WBOY
WBOY原创
2016-07-12 08:58:09892浏览

PHP 中的注释,PHP注释

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

<span>/*</span><span>
这是 
PHP 多行
注释
</span><span>*/</span>
<?<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>?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1104659.htmlTechArticlePHP 中的注释,PHP注释 // 这是 PHP 单行注释 /* 这是 PHP 多行注释 */ ? php $txt1 ="Learn PHP" ; $txt2 ="w3cschool.cc" ; $cars = array ("Volvo","BMW","Toyota" ); ec...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn