| Here in below example i have used variable in double quotes and create three formats to use variable
(1)IN First row i have simple used variable in echo
(2)In second and third i have used variable inside string
And code is as below
< ?php
$Question = 'GetProductPrice';
echo "$Question .com is good website. ";
echo "Latest Interview Questions on ${Question}.com ";
echo "Good Interview Questions on {$Question}.com.";
? >
output of above is
Getproductprice .com is good website
Latest Interview Questions on Getproductprice.com
Good Interview Questions on Getproductprice.com | | |