Output text using PHP Pavel Fedoruk, 02 November 2022 at 01:11 AM
PHP

To output text with PHP, you must use the echo keyword as part of the opening and closing PHP construct by (to open) and ?> (to close).

<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?> 

</body>
</html>

Other recipes

In case you haven't read them yet