First PHP Program
Home Courses Community Support
First PHP Program

To start work on PHP you should know following-

  • PHP files can contain text, HTML tags and scripts
  • PHP files are returned to the browser as plain HTML after compiling PHP
  • PHP files have a file extension of ".php", ".php3", or ".phtml"

As you learn that PHP is all about to writing a command to the server. So we are going to give print command to the server. It will be your first PHP page. Go to our text editor at CodeLAB, select the language PHP and paste below code there-

echo "This is my first PHP Program.";


This is my first PHP Program.

In next heading you will learn to code PHP with in HTML.

← Preview

The Right Environment

Next →



Our mission is to provide highly effective and quality education via innovative solutions. Geeksdemy look forward to bridge the gap between in-demand technology and academics in order to deliver innovative, easy, interesting and affordable learning across the Globe.


  • Python
  • Game Development with Unity 3D
  • Arduino
  • PCB & Circuit Designing
  • Robotics and Embedded C
  • 8051/8052 Embedded Systems
  • QuadCopter & UAV
  • MATLAB with Robotics
  • Raspberry Pi
Learn On the Go!
Get the Android App
Get the iOS App