Entry

the difference between single and double quotes

it’s old news, but i don’t really remember seeing it anywhere. if you use ” (double quote) to define your strings, but have to use $ characters, and are like me and don’t like escaping characters if you don’t have to, use ‘ (single quote).
when you use single quotes your string isn’t parsed it’s [...]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google
  • Technorati
  • Slashdot
  • LinkedIn
  • E-mail this story to a friend!

it’s old news, but i don’t really remember seeing it anywhere. if you use ” (double quote) to define your strings, but have to use $ characters, and are like me and don’t like escaping characters if you don’t have to, use ‘ (single quote).

when you use single quotes your string isn’t parsed it’s treated as is.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google
  • Technorati
  • Slashdot
  • LinkedIn
  • E-mail this story to a friend!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*