Single Quotes Example

Hello, my name is $name.

Double Quotes Example

Hello, my name is Kaylin.

Explanation

Single and double quotes can both be used to create strings in PHP. Single quotes usually display the text exactly as it is written, so a variable inside single quotes will not be replaced by its value. Double quotes allow PHP to recognize variables inside the string and display their values.