PHP Introduction

PHP stands for PHP: Hypertext Preprocessor.

PHP is a widely used scripting language for building web applications.

PHP is executed on the server unlike client-side JavaScript because it is mainly focused on server-side scripting.

PHP codes are enclosed in special opening and closing tags. <?php  ?>

We designed this PHP tutorial to be beginner-friendly with tons of examples to get you started.

PHP Online Editor

Our real-time PHP code editor lets you write codes on your browser and interpreted on our server, allowing you to quickly get your fingers jogging for PHP codes. Feel free to use it anytime!

  Do It yourself

PHP Example Code

<?php
    echo 'Hello PHP!';
?>

  Do It Yourself

What Can PHP Do?

PHP is a server-side scripting language which means it will basically run on the server, it may also run on the client (browser) using some implementations like the Web Assembly. Below are a few of the interesting things PHP can do:

  • PHP can serve dynamic web pages.
  • PHP can be used to develop desktop applications.
  • PHP is database agonistic which means it has support for any type of database such as (MySQL, PostgresSQL, MSSQL, and more).
  • PHP can createreadupdate, delete, open and close files on the server.
  • PHP supports connection to other services like LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM, and more.

Why Use PHP?

  • PHP provides improved security and speed.
  • PHP is free to use.
  • All popular web servers support PHP (Apache, NGINX, IIS, ...).
  • PHP supports data encryption.

Who Can Use PHP?

PHP can be learned by anyone, provided that you have the basic knowledge of:

What You Should Know at the End of This Lesson?

  • You should know the acronym of PHP.
  • You should know that PHP codes are enclosed in special opening and closing tags <?php  ?>.
  • You should know what PHP can do.