PHP Quotes

Single quotes: Hello, $name

Double quotes: Hello, Alex

Explanation

Single and double quotes can both be used to create strings in PHP. The main difference is that double quotes can read a variable inside the string and display its value. Single quotes usually display the text exactly as written, so the variable name is shown instead of its value.

Back to Activity 3