What is the difference between single quotes and double quotes?

by: Admin

GeneralPhpPHP Interview Questions

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.

Exit mobile version