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>?>
Déclaration:Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn