PHP language stands for Hypertext Pre-Processor. PHP is a open source server side scripting programming language which is used for developing web applications.
PHP is a open source server side scripting programming language which is used for developing web applications. PHP language stands for Hypertext Pre-Processor. PHP is developed by Rasmas Lerdorf in 1994.
PHP is server side Scripting language.Php is used for developing dynamics webpages. Php is scripting language which is used for controlling web applications or web page in server-side.
you know how much PHP language is powerful. World Most of website design in PHP. Php is used for designing website , Web portal , ecommerce web applications and etc. you can use any database in PHP. Like MySQL , Oracle database etc.
In Php there are following some framework written in Php language.
There are lot's of feature in PHP programming language. We will explain some important feature.
PHP script is executed on the server and output is shown on browser windows. we can write php script anywhere in the file. PHP script start with and with ?>
We use comment component for making our code comprehensive. using comment in php code We can understand our code any time. whenever figure-out any things.
We write php comment like as
// comment is here
In PHP variable is a container which is used for storing data. In php we use $ sign for defining variable.
like see in Example :
$a = 5; // define variable
echo $a ; // print variable
In the given example , there is $a is variable , which is contain define the value 5.
In php we define variable for storing information but when we need access this variabl in program , it's used as variable scope.
It is having three type
In PHP programming language we use echo and print for display any statement or variable value.
For Example : <?php echo "hello India"; ?>
Datatypes using for storing the value of variable . Datatypes are following types
String contain lot's of character and PHP contain lot's of string functions which is used for manipulating string. for example
$str = "this is string";
echo $str ;
String Function Description
Php constant is a variable type which value is not possible to change and we can use constant variable in full program for constant variable creation . We use define() function for creation PHP constant. It is having two or three parameter. like as :
define(name, value, case-insensitive)
PHP operators use for operation on variable. In PHP there are following type PHP operators :
When we need to take decision any statement in php , its is said to be Decision making statement or Control Statement. Decision making dividing in five part in php .which is given in following.
PHP If Statement : executes some code if one condition is true.
PHP If Else Statement : executes some code if a condition is true and another code if that condition is false.
PHP Nested If Else Statement : more if else statement is there then it said to be nested If Else Statement.
PHP Else if Statement : executes different codes for more than two conditions.
PHP Switch : selects one of many blocks of code to be executed.
When we write a program in php , we need to run over and over same block of code certain number of times. So , Instead of writing several time equal code in a program that's-why we use loop statement .
Loop is used for executing same block of code again and again until condition is being true.
There are following types of loops
Function is more powerful part of PHP. PHP has more than one thousand in-built function and in addition you can create own function. PHP function used for decreasing repeatation of code. Using function in php program big problem makes very easy. In easy ways says " A Function is block of statement that can be used repeatedly in a program. "
PHP function will not not execute automatically, function will execute through a call function.
For Example :
<?php function writeMsg()
echo "hello india";
Rajesh Kumar is the founder and editor of Geeky Shows. He teaches online courses with Purpose, where he aims to help people create meaningful career and lives