Berapa banyak Escape Sequences yang dijalankan pada double quote PHP

Tutorial php – Berapa Banyak Urutan Escape Sequence yang bisa dijalankan dalam String Double-Dikutip?

Ada 12 escape sequence dapat Anda gunakan dalam string yang dikutip ganda:

  • \\ – Represents the back slash character.
  • \” – Represents the double quote character.
  • \$ – Represents the dollar sign.
  • \n – Represents the new line character (ASCII code 10).
  • \r – Represents the carriage return character (ASCII code 13).
  • \t – Represents the tab character (ASCII code 9).
  • \{ – Represents the open brace character.
  • \} – Represents the close brace character.
  • \[ – Represents the open bracket character.
  • \] – Represents the close bracket character.
  • \nnn – Represents a character as an octal value.
  • \xnn – Represents a character as a hex value.

 

Leave a Reply

Your email address will not be published. Required fields are marked *


 

21