Quotes in PHP

Hello $name
Hello, I am a Student

In PHP, single and double quotes behave differently. Single quotes treat everything inside them as plain text, meaning variables and most escape characters are not interpreted. Double quotes, however, allow variable interpolation and recognize special escape characters like newline (\n) and tab (\t). Because of this, double quotes are useful when displaying variables, while single quotes are slightly faster and better for fixed text.