Javatpoint Logo

91-9990449935

 0120-4256464

PHP Example

It is very easy to create a simple PHP example. To do so, create a file and write HTML tags + PHP code and save this file with .php extension.

All PHP code goes between php tag. A syntax of PHP tag is given below:

Let's see a simple PHP example where we are writing some text using PHP echo command.

File: first.php

Output:

Hello First PHP

Next TopicPHP Echo