PHP echo quotes

PHP echo quotes syntax and rules

  • Escape your quotes that are within the string with a backslash. To escape a quote just place a backslash directly before the quotation mark, i.e. \"
  • Use single quotes (apostrophes) for quotes inside your string.
  • Don't use quotes inside your string