Warning: Undefined variable $content in /home/kdt/teiban-free-software.com/public_html/blog/wp-content/themes/the-thor-child/functions.php on line 16
「エスケープシーケンス(英語では escape sequence)」とは、2つ以上の文字(記号)によって構成されるもので、表示される文字とは異なる意味を持つ。
PHPの場合、「¥」もしくは「\(バックスラッシュ)」の後に任意の文字を組み合わせることで「エスケープシーケンス」を作る。
PHPのエスケープシーケンス一覧
以下は、PHPにおけるエスケープシーケンスの一覧だ。
| エスケープシーケンス | 意味 |
| ¥n | 改行 |
| ¥r | キャリッジリターン |
| ¥t | タブ |
| ¥¥ | 「¥」の文字 |
| ¥$ | 「$」の文字 |
| ¥( | 「(」左カッコ |
| ¥) | 「)」右カッコ |
| ¥[ | 「[」左カッコ |
| ¥] | 「]」右カッコ |
| ¥” | 「”」ダブルクオーテーション |
| ¥’ | 「’」シングルクオーテーション |
| ¥nnn | 8 進数表記 |
| ¥xnn | 16 進数表記 |
