首頁  >  文章  >  後端開發  >  PHP 中的註釋

PHP 中的註釋

WBOY
WBOY原創
2016-07-29 09:01:071189瀏覽

<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>?>

以上就介紹了PHP 的註釋,包括了方面的內容,希望對PHP教程有興趣的朋友有幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn