Programming Code Center(PCC)
[PHP]

(PCC)::[How-to-Display-strings-and-variables-with-the-echo-command-in-php]::[php]

File Name : index.php

<!DOCTYPE html>
<html>
<body>

<?php
$txt1 = "Learn PHP";
$txt2 = "W3Schools.com";
$x = 5;
$y = 4;

echo "<h2>" . $txt1 . "</h2>";
echo "Study PHP at " . $txt2 . "<br>";
echo $x + $y;
?>

</body>
</html>

Output :

" . $txt1 . ""; echo "Study PHP at " . $txt2 . "
"; echo $x + $y; ?>