Javatpoint Logo
Javatpoint Logo

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


Hello First PHP

Next TopicPHP Echo

Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA