Skip to content

Variable Interpolation

Variable interpolation allows inserting variables into strings.

$fruit = "apple";
echo "I like $fruit";
$count = 5;
echo "You have {$count} messages";