Interpolation¶
Interpolation is the PHP feature that automatically replaces variables and public properties by their value in double-quoted strings and Heredoc syntax.
<?php
$string = "world";
echo "Hello $string";
// displays Hello world
?>
See also String Interpolation in PHP and Interpolating Strings in PHP.
Related : String, Concatenation, Heredocs, Variables, Dollar /, Double Quotes Strings, Single Quotes Strings