Double quotes example: Hello Leo!
Single quotes example: Hello $name!
In PHP, a double-quoted string means that the variables inside the string will be replaced with their values. Single quotes do not interpolate variables, so the variable name will appear as plain text. Special characters like newline and tab can be safely used within double quotes without escaping. In single quotes, everything is literal except for escaped single quotes and backslashes.