Variable interpolation (or variable expansion)


It happens in strings in double-quotes, but not in strings in single-quotes.


examples/intro/variable_interpolation.php
<?php

   $name = "Rasmus Lerdorf";
   $birthday = 1994;

   print "PHP was created in $birthday by $name<br>";
   print 'PHP was created in $birthday by $name<br>';

?>