What is the difference between interpreting PHP variables within single and double quotation marks?

When using single quotation marks in PHP, variables are not interpreted and will be displayed as plain text. On the other hand, when using double quotation marks, variables will be interpreted and their values will be displayed. To ensure that variables are interpreted within a string, use double quotation marks. Example:

$name = "John";
echo 'Hello, $name'; // Output: Hello, $name
echo "Hello, $name"; // Output: Hello, John