PHP SINGLE AND DOUBLE QUOTES

Hello, Richard! Welcome to the website.
Hello, $name! Welcome to the website.

Double Quotes

Double quotes (" "): PHP parses variables and special characters inside the double quoted strings. Example - "$name" will show the value that is listed for $name or in the case above is Richard.

Single Quotes

Single quotes (' '): PHP treats everything inside the single quotes literally. This means variables like '$name' will not be replaced by their value and will be output as-is.