Hello World Example

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

Explanation:

  • <?php ... ?> is used to write PHP code.
  • echo outputs text to the browser.
  • When you run this, it will display Hello, World!.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *