php tutorial

Php Introduction -:php is a scripting language.That run on server side. PHP is a powerful tool for making dynamic and interactive Web pages. PHP is a free tool for creating a good website. You can create a good static or dynamic website or web application.

How to install php-: Before we start to creating a website it is necessary to install the PHP..There are many AMP(Apache MySQL,PHP) available in the market.According the operating system php support many AMP.

Variable in php-: variable in php store the temporary data.A variable data name that may be used to store a data value only constant that remain unchanged during the execution of a program a variable may take different values at different times during execution we used several variable.

Constant in php- : Constants are like a variable that don’t change during execution. php refer to fixed value that do not change during the execution of a program. There are two type constant in php.

  1. define constant
  2. keyword constant


Operator in php-:  Php support a rich set of built in operator we have already used several of them such as equal to add(+)Minus(-)  multiplication(*) and division(/) operator is a symbol that tells the computer to perform certain mathematics or logical manipulation. operators are used in program to manipulate data and variables.

Data type in php-: PHP allows eight different types of data types. variable store different data to different things. Data Types defines the type of data a variable can store.

if else statement in php-:When we are writing a code in a program then there are some time we get some condition in this situation we write a condition statement . Php support for type condition statement these are the if condition,if..else condition,if else if condition statement,switch statement.