Warning: Undefined array key 0 in /home/yatsuba/yatsuba.com/public_html/wp-content/themes/amaru/functions.php on line 406
Warning: Attempt to read property "parent" on null in /home/yatsuba/yatsuba.com/public_html/wp-content/themes/amaru/functions.php on line 407
Warning: Attempt to read property "term_id" on null in /home/yatsuba/yatsuba.com/public_html/wp-content/themes/amaru/functions.php on line 413
Warning: Attempt to read property "cat_name" on null in /home/yatsuba/yatsuba.com/public_html/wp-content/themes/amaru/functions.php on line 413
コメント
コメント
コメントはプログラム上は無視される領域であり、主に処理のメモ書きなどの用途に使われます。 PHPにおけるコメントは以下の2つです。
- 「//」以降(一行のみ)
- 「/*」~「*/」で囲った部分
コメント例
なおPHPのコメントを使えるのはPHP部(<?PHP ~ ?>)の区間のみです。 PHP部にHTMLのコメントを書いたり、HTML部にPHPのコメントを書いたりはやりがちなミスなので注意しましょう。
エラーコメント例
<?PHP <!-- PHP部ではHTML形式のコメントはエラー --> ?>
// HTML部ではPHP形式のコメントはエラー



