What is the difference between single quotes and double quotes?

Single quoted strings will display things almost completely “as is.” Variables and most escape sequences will not be interpreted.

Double quote strings will display a host of escaped characters (including some regexes), and variables in the strings will be evaluated.

Ankush chhabra

My name is Ankush Chhabra and I’m a 28 years old web developer and blogger.I have 5 years of experience in this field.