PHP: Our first PHP script

This entry is part 2 of 54 in the series PHP Tutorial

We will first look at a few PHP examples.  Here I assume that you have some understanding of HTML which is sufficed for us for now.

  <title>PHP Test</title>
 <?php echo '<p>Hello World</p>'; ?> 
Try The Code

Echo is similar to writeln in C.

In this example, the entire string <p>Hello World</p> will be output to the browser and this string is also what the browser will see.

And as for us, we will see Hello World in the browser when the script is ran.

Series Navigation<< PHP: The language
PHP: Using Netbeans >>

Leave a comment

Leave a Reply