What is the difference between single and double quotation marks in PHP strings?

In PHP, single quotation marks (' ') and double quotation marks (" ") are used to define strings. The main difference between them is that single quotation marks do not interpret variables or special characters within the string, while double quotation marks do. If you need to include variables or special characters within a string, you should use double quotation marks. Example:

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