Introduction to PHP

PHP stands for Hypertext preprocessor that is known as server side scripting language .
PHP designed by Rasmus Lerdorf and developed by Zend Technologies in 1994 .
PHP is used for the website development but also use for general programming language .
PHP is used for dynamic website development .



PHP Syntax-



 <?php 
echo"statement";
?>

echo - Used for print the statement .

Save this file as example.php
You can embed the HTML code in PHP.
A simple HELLO Program in HTML code embedded in PHP File.


Example


Enter HTML code in PHP file .

<?php echo "Hello "; ?>
Run
Embeded in HTML

PHP Overview

1. PHP is not used for web designing .(Web Designing based on HTML)
2. PHP is used for web development .
3. PHP is not written in HTML file. (myprgram.html)
4. HTML can write in PHP file . (myprogram.php)
5. PHP is no displayed on webpage because it is a logical part of dynamic website (script part) .
6. PHP is a logical part of any website .
7. In terms of keywords and language syntax, PHP is similar to the C programming style syntax.|| if conditions, ||for and ||while loops,|| and function returns are similar in syntax to languages such as C, C++, C#, Java and Perl.
8. Dynamic website development .
9. It used for various types of CMS(Control Management System) development .