Problem Statement
Explain string interpolation in PHP with examples.
Explanation
String interpolation means embedding variables inside double-quoted strings. PHP replaces variables with their values. It doesn't work in single quotes.
Code Solution
SolutionRead Only
$name='John'; echo "Hello $name"; // prints Hello John
