LoginSignup
0
0

' 'と" "の違い[PHP]

Last updated at Posted at 2023-08-26

はじめに

' '(シングルクォーテーション)と" "(ダブルクォーテーション)の違いについてのメモです。

" "(ダブルクォーテーション)

・" "内で変数を記述できる

余談:文字列内で変数を使う際はバグを出さない為にも { } を使って囲う

・エスケープシーケンスが利用できる

余談:エスケープシーケンスとは\(バックスラッシュ)から始まる特殊なコード

最後に

簡単なメモなので今後また知見が増えたら追記するかもしれません。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0