Single vs Double Quotes in PHP

Single quotes: $name does not get parsed.

Double quotes: Zack gets parsed as Zack.

Explanation:

In PHP, single-quoted strings are treated as plain text, meaning variables inside them are not interpreted. Meaning that everything that is passed through them is passed through as is. Double-quoted strings allow variable interpolation, meaning PHP replaces variables with their values. Double quotes also support escape sequences like `\n` for new lines.