Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Display strings and variables with the print command
SUBMITTED BY:
henry1874w
DATE:
June 4, 2017, 8:07 p.m.
FORMAT:
Text only
SIZE:
222 Bytes
Raw
Download
Tweet
HITS:
274
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$txt1 = "Learn PHP";
$txt2 = "W3Schools.com";
$x = 5;
$y = 4;
print "<h2>" . $txt1 . "</h2>";
print "Study PHP at " . $txt2 . "<br>";
print $x + $y;
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus