Hello, World – Your First PHP

array_map

In this tutorial you will run a simple text “Hello world” i.e. Your First PHP. Create a file named with myfirstpage.php and place it in your web server’s root directory i.e. DOCUMENT_ROOT with the following content:

<html>
 <head>
  <title>PHP: Hello world</title>
 </head>
 <body>
 <?php echo 'Hello World'; ?> 
 </body>
</html>

You may like:  Match a backslash with preg_match() in PHP

Leave a Reply

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