PHP Intro

PHP (Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Originally created by Rasmus Lerdorf in 1994.

It can be used in combination with various web content management systems such as joomla, magento, drupal, wordpress, prestashop etc and web frameworks such as Laravel, Codeignter, Cakephp, Zend, Symphony, Yii etc. The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License.


  • PHP is a fast and flexible.
  • PHP is an interpreted language, i.e. there is no need for compilation.
  • PHP is simple and easy to learn language.
  • PHP is faster than other scripting language e.g. asp and jsp.
  • PHP is secure, cheap and reliable for developing web applications.

Below the following 'My first PHP script!' program is written in PHP code embedded in an HTML document:

<!DOCTYPE html>
<html lang="en">
     <?php echo 'My first PHP script!'; ?>

Output: My first PHP script!