close
php程式區塊定義方式
linux內有要求<?php,一定要加上php
<?php
echo 'This is a test';
?>
<?php echo 'This is a test' ?>
根據psr-0會建議使用這種方式,不設定?>結尾
<?php echo 'We omitted the last closing tag';
註解
支援c/c++、perl的註解方式
<?php
echo 'This is a test'; // This is a one-line c++ style comment
/* This is a multi line comment
yet another line of comment */
echo 'This is yet another test';
echo 'One Final Test'; # This is a one-line shell-style comment
?>
文章標籤
全站熱搜