Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Display strings and variables with the echo command
SUBMITTED BY:
henry1874w
DATE:
June 4, 2017, 8:03 p.m.
FORMAT:
Text only
SIZE:
219 Bytes
Raw
Download
Tweet
HITS:
281
Go to comments
Report
<!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>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus