👁️🗨
Question: Do you know how to print output using Php?
💬
Answer : The echo
statement can be used with or without parentheses: echo
or echo()
.
You can also include html text into echo statement.
<!DOCTYPE html>
<html>
<body>
<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>
</body>
</html>